aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tools/pCampBot/BotManager.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-05-11 00:53:21 +0100
committerJustin Clark-Casey (justincc)2012-05-11 00:53:21 +0100
commitdc39ec82fa8343657ad9b45a7d9cfeb27bf26e79 (patch)
treec1e8bde99dbb20e83202c4f405b717967c5d65c6 /OpenSim/Tools/pCampBot/BotManager.cs
parentIf a bot is not connected, show region name "(none)" instead of throwing an e... (diff)
downloadopensim-SC_OLD-dc39ec82fa8343657ad9b45a7d9cfeb27bf26e79.zip
opensim-SC_OLD-dc39ec82fa8343657ad9b45a7d9cfeb27bf26e79.tar.gz
opensim-SC_OLD-dc39ec82fa8343657ad9b45a7d9cfeb27bf26e79.tar.bz2
opensim-SC_OLD-dc39ec82fa8343657ad9b45a7d9cfeb27bf26e79.tar.xz
Change bot.IsConnected to be ConnectionState with Disconnected, Connecting, Connnected and Disconnecting states
Diffstat (limited to 'OpenSim/Tools/pCampBot/BotManager.cs')
-rw-r--r--OpenSim/Tools/pCampBot/BotManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Tools/pCampBot/BotManager.cs b/OpenSim/Tools/pCampBot/BotManager.cs
index fd32a6a..d4bbc2a 100644
--- a/OpenSim/Tools/pCampBot/BotManager.cs
+++ b/OpenSim/Tools/pCampBot/BotManager.cs
@@ -242,7 +242,7 @@ namespace pCampBot
242 242
243 lock (m_lBot) 243 lock (m_lBot)
244 { 244 {
245 if (m_lBot.TrueForAll(b => !b.IsConnected)) 245 if (m_lBot.TrueForAll(b => b.ConnectionState == ConnectionState.Disconnected))
246 Environment.Exit(0); 246 Environment.Exit(0);
247 247
248 break; 248 break;
@@ -306,7 +306,7 @@ namespace pCampBot
306 306
307 MainConsole.Instance.OutputFormat( 307 MainConsole.Instance.OutputFormat(
308 outputFormat, 308 outputFormat,
309 pb.Name, currentSim != null ? currentSim.Name : "(none)", pb.IsConnected ? "Connected" : "Disconnected"); 309 pb.Name, currentSim != null ? currentSim.Name : "(none)", pb.ConnectionState);
310 } 310 }
311 } 311 }
312 } 312 }