mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
client cleanups
part 1) order of operations on disconnectedCleanup
This commit is contained in:
parent
005f7f6fd2
commit
648ceebbff
1 changed files with 2 additions and 2 deletions
|
|
@ -104,12 +104,12 @@ function disconnect()
|
||||||
// else physics resources will not cleanup properly.
|
// else physics resources will not cleanup properly.
|
||||||
physicsStopSimulation( "client" );
|
physicsStopSimulation( "client" );
|
||||||
|
|
||||||
|
disconnectedCleanup();
|
||||||
|
|
||||||
// Delete the connection if it's still there.
|
// Delete the connection if it's still there.
|
||||||
if (isObject(ServerConnection))
|
if (isObject(ServerConnection))
|
||||||
ServerConnection.delete();
|
ServerConnection.delete();
|
||||||
|
|
||||||
disconnectedCleanup();
|
|
||||||
|
|
||||||
// Call destroyServer in case we're hosting
|
// Call destroyServer in case we're hosting
|
||||||
destroyServer();
|
destroyServer();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue