Browse Source

Unsubscribe to log messages during exit, so that we don't try and send across IPC during shutdown

Josh Engebretson 10 years ago
parent
commit
fc281fefa2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/AtomicEditor/PlayerMode/AEPlayerMode.cpp

+ 1 - 0
Source/AtomicEditor/PlayerMode/AEPlayerMode.cpp

@@ -257,6 +257,7 @@ void PlayerMode::HandlePlayerWindowChanged(StringHash eventType, VariantMap& eve
 
 
 void PlayerMode::HandleExitRequest(StringHash eventType, VariantMap& eventData)
 void PlayerMode::HandleExitRequest(StringHash eventType, VariantMap& eventData)
 {
 {
+    UnsubscribeFromEvent(E_LOGMESSAGE);
     SendEvent(E_PLAYERQUIT);
     SendEvent(E_PLAYERQUIT);
 }
 }