소스 검색

Merge pull request #236 from Azaezel/alpha40_connectionCleanup

client cleanups
Brian Roberts 5 년 전
부모
커밋
70ea856574
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Templates/BaseGame/game/core/clientServer/scripts/client/connectionToServer.cs

+ 2 - 2
Templates/BaseGame/game/core/clientServer/scripts/client/connectionToServer.cs

@@ -104,12 +104,12 @@ function disconnect()
    // else physics resources will not cleanup properly.
    physicsStopSimulation( "client" );
 
+   disconnectedCleanup();
+
    // Delete the connection if it's still there.
    if (isObject(ServerConnection))
       ServerConnection.delete();
       
-   disconnectedCleanup();
-
    // Call destroyServer in case we're hosting
    destroyServer();
 }