From 4bf469d40b25e270bf16faac63a62195724d2f90 Mon Sep 17 00:00:00 2001 From: yugecin Date: Fri, 20 Jan 2017 00:18:25 +0100 Subject: [PATCH] some more shutdown calls --- src/yugecin/opsudance/OpsuDance.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/yugecin/opsudance/OpsuDance.java b/src/yugecin/opsudance/OpsuDance.java index e8b5b28a..04b04054 100644 --- a/src/yugecin/opsudance/OpsuDance.java +++ b/src/yugecin/opsudance/OpsuDance.java @@ -19,9 +19,11 @@ package yugecin.opsudance; import itdelatrisu.opsu.Options; import itdelatrisu.opsu.Utils; +import itdelatrisu.opsu.beatmap.BeatmapWatchService; import itdelatrisu.opsu.db.DBController; import itdelatrisu.opsu.downloads.DownloadList; import itdelatrisu.opsu.downloads.Updater; +import itdelatrisu.opsu.render.CurveRenderState; import itdelatrisu.opsu.states.Splash; import org.newdawn.slick.util.Log; import yugecin.opsudance.core.DisplayContainer; @@ -76,6 +78,10 @@ public class OpsuDance { DBController.closeConnections(); DownloadList.get().cancelAllDownloads(); Utils.deleteDirectory(Options.TEMP_DIR); + CurveRenderState.shutdown(); + if (!Options.isWatchServiceEnabled()) { + BeatmapWatchService.destroy(); + } } private boolean rungame() {