summaryrefslogtreecommitdiff
path: root/src/progs/dyecmd
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-15 00:17:44 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-15 00:17:44 +0300
commit69f995bb5124c19746ff026f4e64c7398611e9f0 (patch)
tree3455a32540e5285595f2d88c30a4b82d3bbea77a /src/progs/dyecmd
parenta570c54e39c9a5f626db2453690cb7800d09cea3 (diff)
downloadmanaverse-69f995bb5124c19746ff026f4e64c7398611e9f0.tar.gz
manaverse-69f995bb5124c19746ff026f4e64c7398611e9f0.tar.bz2
manaverse-69f995bb5124c19746ff026f4e64c7398611e9f0.tar.xz
manaverse-69f995bb5124c19746ff026f4e64c7398611e9f0.zip
Fix termination audio on exit.
Diffstat (limited to 'src/progs/dyecmd')
-rw-r--r--src/progs/dyecmd/client.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/progs/dyecmd/client.cpp b/src/progs/dyecmd/client.cpp
index 643ffdb30..a097e0f06 100644
--- a/src/progs/dyecmd/client.cpp
+++ b/src/progs/dyecmd/client.cpp
@@ -449,8 +449,7 @@ void Client::gameClear()
if (logger != nullptr)
logger->log1("Quitting5");
- // Shutdown sound
- soundManager.close();
+ soundManager.shutdown();
if (logger != nullptr)
logger->log1("Quitting6");
@@ -458,6 +457,8 @@ void Client::gameClear()
touchManager.clear();
ResourceManager::deleteInstance();
+ soundManager.close();
+
if (logger != nullptr)
logger->log1("Quitting8");
@@ -473,7 +474,6 @@ void Client::gameClear()
if (logger != nullptr)
logger->log1("Quitting10");
- soundManager.shutdown();
touchManager.shutdown();
#ifdef DEBUG_CONFIG