mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Fix a race condition where pCampbot actions could continue even if a bot had disconnected.
This commit is contained in:
@@ -276,7 +276,7 @@ namespace pCampBot
|
||||
//add additional steps and/or things the bot should do
|
||||
private void Action()
|
||||
{
|
||||
while (ConnectionState != ConnectionState.Disconnecting)
|
||||
while (ConnectionState == ConnectionState.Connected)
|
||||
{
|
||||
lock (Behaviours)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user