On closing EQs, make sure to wait for the viewer to fetch the last events.

0.6.2-post-fixes
diva 2008-12-22 05:59:29 +00:00
parent d83d665186
commit ae30d74b79
1 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,7 @@ using System.Collections.Generic;
using System.Net;
using System.Net.Sockets;
using System.Reflection;
using System.Threading;
using System.Xml;
using OpenMetaverse;
using OpenMetaverse.StructuredData;
@ -207,6 +208,9 @@ 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)
Thread.Sleep(1000);
lock (queues)
{
queues.Remove(AgentID);