* Added NullReference check to EventQueueGetModule.
parent
fa55fc89d8
commit
596366324a
|
@ -149,8 +149,14 @@ namespace OpenSim.Region.Environment.Modules.Framework
|
|||
public bool Enqueue(LLSD ev, UUID avatarID)
|
||||
{
|
||||
m_log.DebugFormat("[EVENTQUEUE]: Enqueuing event for {0} in region {1}", avatarID, m_scene.RegionInfo.RegionName);
|
||||
try
|
||||
{
|
||||
BlockingLLSDQueue queue = GetQueue(avatarID);
|
||||
queue.Enqueue(ev);
|
||||
} catch(NullReferenceException)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
#endregion
|
||||
|
|
Loading…
Reference in New Issue