Browse Source

Fix assertion failure on shutdown

Ivan Savenko 2 years ago
parent
commit
21c053ba87
1 changed files with 1 additions and 0 deletions
  1. 1 0
      client/CMusicHandler.cpp

+ 1 - 0
client/CMusicHandler.cpp

@@ -369,6 +369,7 @@ void CMusicHandler::release()
 		boost::mutex::scoped_lock guard(mutex);
 		boost::mutex::scoped_lock guard(mutex);
 
 
 		Mix_HookMusicFinished(nullptr);
 		Mix_HookMusicFinished(nullptr);
+		current->stop();
 
 
 		current.reset();
 		current.reset();
 		next.reset();
 		next.reset();