Browse Source

If the player is shutting down, don’t hang on to the socket

Shaddock Heath 8 years ago
parent
commit
c304c869c7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Source/AtomicApp/Player/IPCPlayerApp.cpp

+ 2 - 0
Source/AtomicApp/Player/IPCPlayerApp.cpp

@@ -1120,6 +1120,8 @@ void duk_trans_socket_write_flush_cb(void *udata) {
 
 
     void IPCPlayerApp::HandleExitRequest(StringHash eventType, VariantMap& eventData)
     void IPCPlayerApp::HandleExitRequest(StringHash eventType, VariantMap& eventData)
     {
     {
+        // we are exiting, so let's clear out the debugger object
+        arobj = NULL;
         UnsubscribeFromEvent(E_LOGMESSAGE);
         UnsubscribeFromEvent(E_LOGMESSAGE);
         SendEvent(E_PLAYERQUIT);
         SendEvent(E_PLAYERQUIT);
     }
     }