aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tools/pCampBot
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-11-05 20:58:52 +0000
committerJustin Clark-Casey (justincc)2013-11-05 20:58:52 +0000
commit2d315ec207292ef05bab5e4f662599e755d7acbf (patch)
tree9479865f2fcee370f190bd2f48810c90ae5d0313 /OpenSim/Tools/pCampBot
parentIf the LSL state_entry() event definition contains any parameters, then gener... (diff)
downloadopensim-SC-2d315ec207292ef05bab5e4f662599e755d7acbf.zip
opensim-SC-2d315ec207292ef05bab5e4f662599e755d7acbf.tar.gz
opensim-SC-2d315ec207292ef05bab5e4f662599e755d7acbf.tar.bz2
opensim-SC-2d315ec207292ef05bab5e4f662599e755d7acbf.tar.xz
Fix a race condition where pCampbot actions could continue even if a bot had disconnected.
Diffstat (limited to 'OpenSim/Tools/pCampBot')
-rw-r--r--OpenSim/Tools/pCampBot/Bot.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Tools/pCampBot/Bot.cs b/OpenSim/Tools/pCampBot/Bot.cs
index ccc24fa..70aa2cb 100644
--- a/OpenSim/Tools/pCampBot/Bot.cs
+++ b/OpenSim/Tools/pCampBot/Bot.cs
@@ -276,7 +276,7 @@ namespace pCampBot
276 //add additional steps and/or things the bot should do 276 //add additional steps and/or things the bot should do
277 private void Action() 277 private void Action()
278 { 278 {
279 while (ConnectionState != ConnectionState.Disconnecting) 279 while (ConnectionState == ConnectionState.Connected)
280 { 280 {
281 lock (Behaviours) 281 lock (Behaviours)
282 { 282 {