aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment
diff options
context:
space:
mode:
authorAdam Frisby2008-10-10 14:46:01 +0000
committerAdam Frisby2008-10-10 14:46:01 +0000
commit596366324a27924b8e5af1507da7ec46625dcce2 (patch)
tree0f0942edd3d7e6fc3dd598f7ff1be3dfa939131c /OpenSim/Region/Environment
parent* Fixed a potential threading issue with EventQueueGet leading to spontaneous... (diff)
downloadopensim-SC-596366324a27924b8e5af1507da7ec46625dcce2.zip
opensim-SC-596366324a27924b8e5af1507da7ec46625dcce2.tar.gz
opensim-SC-596366324a27924b8e5af1507da7ec46625dcce2.tar.bz2
opensim-SC-596366324a27924b8e5af1507da7ec46625dcce2.tar.xz
* Added NullReference check to EventQueueGetModule.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs b/OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs
index 5f20dc1..d0e78f1 100644
--- a/OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs
+++ b/OpenSim/Region/Environment/Modules/Framework/EventQueueGetModule.cs
@@ -149,8 +149,14 @@ namespace OpenSim.Region.Environment.Modules.Framework
149 public bool Enqueue(LLSD ev, UUID avatarID) 149 public bool Enqueue(LLSD ev, UUID avatarID)
150 { 150 {
151 m_log.DebugFormat("[EVENTQUEUE]: Enqueuing event for {0} in region {1}", avatarID, m_scene.RegionInfo.RegionName); 151 m_log.DebugFormat("[EVENTQUEUE]: Enqueuing event for {0} in region {1}", avatarID, m_scene.RegionInfo.RegionName);
152 BlockingLLSDQueue queue = GetQueue(avatarID); 152 try
153 queue.Enqueue(ev); 153 {
154 BlockingLLSDQueue queue = GetQueue(avatarID);
155 queue.Enqueue(ev);
156 } catch(NullReferenceException)
157 {
158 return false;
159 }
154 return true; 160 return true;
155 } 161 }
156 #endregion 162 #endregion