From 6a24d0eb2d1aa56333844ed5a39fdb431cc5d76d Mon Sep 17 00:00:00 2001 From: Dan Lake Date: Tue, 11 Jan 2011 11:40:14 -0800 Subject: [PATCH] Added missing lock in EventQueue Enqueue. --- .../Framework/EventQueue/EventQueueGetModule.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/CoreModules/Framework/EventQueue/EventQueueGetModule.cs b/OpenSim/Region/CoreModules/Framework/EventQueue/EventQueueGetModule.cs index 05fe3eee04..9292392445 100644 --- a/OpenSim/Region/CoreModules/Framework/EventQueue/EventQueueGetModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EventQueue/EventQueueGetModule.cs @@ -177,7 +177,12 @@ namespace OpenSim.Region.CoreModules.Framework.EventQueue { Queue queue = GetQueue(avatarID); if (queue != null) - queue.Enqueue(ev); + { + lock (queue) + { + queue.Enqueue(ev); + } + } } catch(NullReferenceException e) {