mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 09:36:15 +00:00
Changed: #1032 Crash in OpenAL driver when a music is playing and user returns to selection menu
This commit is contained in:
parent
39aeaa0ec4
commit
75a100d422
1 changed files with 4 additions and 4 deletions
|
@ -212,8 +212,8 @@ void releaseMainLoopReselect()
|
||||||
// alredy called from farTPMainLoop()
|
// alredy called from farTPMainLoop()
|
||||||
// --R2::getEditor().autoConfigRelease(IsInRingSession);
|
// --R2::getEditor().autoConfigRelease(IsInRingSession);
|
||||||
|
|
||||||
// Stop the music
|
// Pause any user played music
|
||||||
MusicPlayer.stop();
|
MusicPlayer.pause();
|
||||||
|
|
||||||
// only really needed at exit
|
// only really needed at exit
|
||||||
// --STRING_MANAGER::CStringManagerClient::instance()->flushStringCache();
|
// --STRING_MANAGER::CStringManagerClient::instance()->flushStringCache();
|
||||||
|
@ -362,8 +362,8 @@ void releaseMainLoop(bool closeConnection)
|
||||||
// Release R2 editor if applicable
|
// Release R2 editor if applicable
|
||||||
R2::getEditor().autoConfigRelease(IsInRingSession);
|
R2::getEditor().autoConfigRelease(IsInRingSession);
|
||||||
|
|
||||||
// Stop the music
|
// Pause any user played music
|
||||||
MusicPlayer.stop();
|
MusicPlayer.pause();
|
||||||
|
|
||||||
// flush the server string cache
|
// flush the server string cache
|
||||||
STRING_MANAGER::CStringManagerClient::instance()->flushStringCache();
|
STRING_MANAGER::CStringManagerClient::instance()->flushStringCache();
|
||||||
|
|
Loading…
Reference in a new issue