Rearrange ShutdownGame() to prevent network based crash
This prevents a crash that occurs when trying to exit the game while a connection attempt is being made (such as closing the game while it's in the middle of trying to connect to GrooveStats).
This commit is contained in:
+1
-1
@@ -298,10 +298,10 @@ void ShutdownGame()
|
||||
LIGHTSMAN->TurnOffAllLights();
|
||||
}
|
||||
|
||||
RageUtil::SafeDelete( NETWORK );
|
||||
RageUtil::SafeDelete( SCREENMAN );
|
||||
RageUtil::SafeDelete( STATSMAN );
|
||||
RageUtil::SafeDelete( MESSAGEMAN );
|
||||
RageUtil::SafeDelete( NETWORK );
|
||||
/* Delete INPUTMAN before the other INPUTFILTER handlers, or an input
|
||||
* driver may try to send a message to INPUTFILTER after we delete it. */
|
||||
RageUtil::SafeDelete( INPUTMAN );
|
||||
|
||||
Reference in New Issue
Block a user