Ver código fonte

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

Josh Engebretson 10 anos atrás
pai
commit
fc281fefa2
1 arquivos alterados com 1 adições e 0 exclusões
  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)
 {
+    UnsubscribeFromEvent(E_LOGMESSAGE);
     SendEvent(E_PLAYERQUIT);
 }