From c605509da3a690d4050c48418111d7f29f7be9b4 Mon Sep 17 00:00:00 2001 From: Teravus Ovares (Dan Olivares) Date: Wed, 9 Sep 2009 16:20:19 -0400 Subject: * Lock timers when Calling Start() and Stop() when the Thread Context is murky. This affects Mono only. --- OpenSim/Grid/MessagingServer.Modules/InterMessageUserServerModule.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'OpenSim/Grid/MessagingServer.Modules') diff --git a/OpenSim/Grid/MessagingServer.Modules/InterMessageUserServerModule.cs b/OpenSim/Grid/MessagingServer.Modules/InterMessageUserServerModule.cs index 0eb7b6a..ae04535 100644 --- a/OpenSim/Grid/MessagingServer.Modules/InterMessageUserServerModule.cs +++ b/OpenSim/Grid/MessagingServer.Modules/InterMessageUserServerModule.cs @@ -58,7 +58,8 @@ namespace OpenSim.Grid.MessagingServer.Modules m_messageCore = messageCore; reconnectTimer.Elapsed += registerWithUserServer; - reconnectTimer.Start(); + lock (reconnectTimer) + reconnectTimer.Start(); } public void Initialise() -- cgit v1.1