From fc9ffa5f97d02941c7680aae01c31450b8ab1bdc Mon Sep 17 00:00:00 2001 From: diva Date: Mon, 22 Dec 2008 06:10:36 +0000 Subject: [PATCH] One more check on closing EQs. --- .../Environment/Modules/Framework/EventQueueGetModule.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs b/OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs index 1a315bc754..f12cf4e514 100644 --- a/OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs +++ b/OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs @@ -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)