Better test on EQ shutdown.

0.6.2-post-fixes
diva 2008-12-24 05:05:22 +00:00
parent 90126f6ca8
commit a647a19894
1 changed files with 4 additions and 1 deletions

View File

@ -208,8 +208,11 @@ namespace OpenSim.Region.Environment.Modules.Framework
{
m_log.DebugFormat("[EVENTQUEUE]: Closed client {0} in region {1}", AgentID, m_scene.RegionInfo.RegionName);
while ((queues[AgentID] != null) && queues[AgentID].Count() > 0)
int count = 0;
while (queues.ContainsKey(AgentID) && queues[AgentID].Count() > 0 && count++ < 5)
{
Thread.Sleep(1000);
}
lock (queues)
{