mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Shutdown a bot's actions by making it check for disconnecting state rather than aborting the thread.
Aborting the thread appears to be causing shutdown issues.
This commit is contained in:
@@ -158,7 +158,7 @@ namespace pCampBot
|
||||
//add additional steps and/or things the bot should do
|
||||
private void Action()
|
||||
{
|
||||
while (true)
|
||||
while (ConnectionState != ConnectionState.Disconnecting)
|
||||
lock (Behaviours)
|
||||
Behaviours.ForEach(
|
||||
b =>
|
||||
@@ -178,8 +178,8 @@ namespace pCampBot
|
||||
{
|
||||
ConnectionState = ConnectionState.Disconnecting;
|
||||
|
||||
if (m_actionThread != null)
|
||||
m_actionThread.Abort();
|
||||
// if (m_actionThread != null)
|
||||
// m_actionThread.Abort();
|
||||
|
||||
Client.Network.Logout();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user