diff options
author | Justin Clark-Casey (justincc) | 2013-11-05 20:58:52 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-11-05 20:58:52 +0000 |
commit | 2d315ec207292ef05bab5e4f662599e755d7acbf (patch) | |
tree | 9479865f2fcee370f190bd2f48810c90ae5d0313 /OpenSim/Tools | |
parent | If the LSL state_entry() event definition contains any parameters, then gener... (diff) | |
download | opensim-SC_OLD-2d315ec207292ef05bab5e4f662599e755d7acbf.zip opensim-SC_OLD-2d315ec207292ef05bab5e4f662599e755d7acbf.tar.gz opensim-SC_OLD-2d315ec207292ef05bab5e4f662599e755d7acbf.tar.bz2 opensim-SC_OLD-2d315ec207292ef05bab5e4f662599e755d7acbf.tar.xz |
Fix a race condition where pCampbot actions could continue even if a bot had disconnected.
Diffstat (limited to 'OpenSim/Tools')
-rw-r--r-- | OpenSim/Tools/pCampBot/Bot.cs | 2 |
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 | { |