diff options
author | Justin Clark-Casey (justincc) | 2012-05-11 00:53:21 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-05-11 00:53:21 +0100 |
commit | dc39ec82fa8343657ad9b45a7d9cfeb27bf26e79 (patch) | |
tree | c1e8bde99dbb20e83202c4f405b717967c5d65c6 /OpenSim/Tools/pCampBot/BotManager.cs | |
parent | If a bot is not connected, show region name "(none)" instead of throwing an e... (diff) | |
download | opensim-SC-dc39ec82fa8343657ad9b45a7d9cfeb27bf26e79.zip opensim-SC-dc39ec82fa8343657ad9b45a7d9cfeb27bf26e79.tar.gz opensim-SC-dc39ec82fa8343657ad9b45a7d9cfeb27bf26e79.tar.bz2 opensim-SC-dc39ec82fa8343657ad9b45a7d9cfeb27bf26e79.tar.xz |
Change bot.IsConnected to be ConnectionState with Disconnected, Connecting, Connnected and Disconnecting states
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Tools/pCampBot/BotManager.cs | 4 |
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 | } |