mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-04 20:15:16 +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.
|
||||
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