mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
add comment
This commit is contained in:
parent
456e098544
commit
a2c7a7e60d
@ -181,6 +181,12 @@ public override void Disconnect()
|
|||||||
// (might be client or host mode here)
|
// (might be client or host mode here)
|
||||||
isReady = false;
|
isReady = false;
|
||||||
Transport.activeTransport.ServerDisconnect(connectionId);
|
Transport.activeTransport.ServerDisconnect(connectionId);
|
||||||
|
|
||||||
|
// IMPORTANT: NetworkConnection.Disconnect() is NOT called for
|
||||||
|
// voluntary disconnects from the other end.
|
||||||
|
// -> so all 'on disconnect' cleanup code needs to be in
|
||||||
|
// OnTransportDisconnect, where it's called for both voluntary
|
||||||
|
// and involuntary disconnects!
|
||||||
RemoveFromObservingsObservers();
|
RemoveFromObservingsObservers();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user