mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
Listen only for non SimShutdown Network.Disconnect firing so that we don't quite the program before all bots have actually logged off.
This commit is contained in:
@@ -398,7 +398,13 @@ namespace pCampBot
|
||||
// (args.Reason == NetworkManager.DisconnectType.SimShutdown
|
||||
// || args.Reason == NetworkManager.DisconnectType.NetworkTimeout)
|
||||
// && OnDisconnected != null)
|
||||
if (OnDisconnected != null)
|
||||
|
||||
if (
|
||||
(args.Reason == NetworkManager.DisconnectType.ClientInitiated
|
||||
|| args.Reason == NetworkManager.DisconnectType.ServerInitiated
|
||||
|| args.Reason == NetworkManager.DisconnectType.NetworkTimeout)
|
||||
&& OnDisconnected != null)
|
||||
// if (OnDisconnected != null)
|
||||
{
|
||||
OnDisconnected(this, EventType.DISCONNECTED);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user