mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-03 03:25:11 +00:00
Merge pull request #236 from Azaezel/alpha40_connectionCleanup
client cleanups
This commit is contained in:
commit
70ea856574
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue