One more check on closing EQs.

0.6.2-post-fixes
diva 2008-12-22 06:10:36 +00:00
parent c66cfb51f7
commit fc9ffa5f97
1 changed files with 2 additions and 1 deletions

View File

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