aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tools
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-11-01 21:47:14 +0000
committerJustin Clark-Casey (justincc)2011-11-01 21:47:14 +0000
commit40750b44a09c9970497657c3a847af2d92c8b385 (patch)
treebbbc70f65c109cebef7b0f8f692ab577234499d2 /OpenSim/Tools
parentget rid of unused m_verbose field (diff)
downloadopensim-SC_OLD-40750b44a09c9970497657c3a847af2d92c8b385.zip
opensim-SC_OLD-40750b44a09c9970497657c3a847af2d92c8b385.tar.gz
opensim-SC_OLD-40750b44a09c9970497657c3a847af2d92c8b385.tar.bz2
opensim-SC_OLD-40750b44a09c9970497657c3a847af2d92c8b385.tar.xz
Listen only for non SimShutdown Network.Disconnect firing so that we don't quite the program before all bots have actually logged off.
Diffstat (limited to 'OpenSim/Tools')
-rw-r--r--OpenSim/Tools/pCampBot/PhysicsBot.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Tools/pCampBot/PhysicsBot.cs b/OpenSim/Tools/pCampBot/PhysicsBot.cs
index 945697b..5bcd35d 100644
--- a/OpenSim/Tools/pCampBot/PhysicsBot.cs
+++ b/OpenSim/Tools/pCampBot/PhysicsBot.cs
@@ -398,7 +398,13 @@ namespace pCampBot
398// (args.Reason == NetworkManager.DisconnectType.SimShutdown 398// (args.Reason == NetworkManager.DisconnectType.SimShutdown
399// || args.Reason == NetworkManager.DisconnectType.NetworkTimeout) 399// || args.Reason == NetworkManager.DisconnectType.NetworkTimeout)
400// && OnDisconnected != null) 400// && OnDisconnected != null)
401 if (OnDisconnected != null) 401
402 if (
403 (args.Reason == NetworkManager.DisconnectType.ClientInitiated
404 || args.Reason == NetworkManager.DisconnectType.ServerInitiated
405 || args.Reason == NetworkManager.DisconnectType.NetworkTimeout)
406 && OnDisconnected != null)
407// if (OnDisconnected != null)
402 { 408 {
403 OnDisconnected(this, EventType.DISCONNECTED); 409 OnDisconnected(this, EventType.DISCONNECTED);
404 } 410 }