diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Capabilities/Caps.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Capabilities/Caps.cs b/OpenSim/Capabilities/Caps.cs index bbf3b27..30a323e 100644 --- a/OpenSim/Capabilities/Caps.cs +++ b/OpenSim/Capabilities/Caps.cs | |||
@@ -30,6 +30,7 @@ using System.Collections; | |||
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.IO; | 31 | using System.IO; |
32 | using System.Reflection; | 32 | using System.Reflection; |
33 | using System.Threading; | ||
33 | using log4net; | 34 | using log4net; |
34 | using Nini.Config; | 35 | using Nini.Config; |
35 | using OpenMetaverse; | 36 | using OpenMetaverse; |
@@ -72,6 +73,7 @@ namespace OpenSim.Framework.Capabilities | |||
72 | private IHttpServer m_httpListener; | 73 | private IHttpServer m_httpListener; |
73 | private UUID m_agentID; | 74 | private UUID m_agentID; |
74 | private string m_regionName; | 75 | private string m_regionName; |
76 | private ManualResetEvent m_capsActive = new ManualResetEvent(false); | ||
75 | 77 | ||
76 | public UUID AgentID | 78 | public UUID AgentID |
77 | { | 79 | { |
@@ -252,5 +254,16 @@ namespace OpenSim.Framework.Capabilities | |||
252 | 254 | ||
253 | return caps; | 255 | return caps; |
254 | } | 256 | } |
257 | |||
258 | public void Activate() | ||
259 | { | ||
260 | m_capsActive.Set(); | ||
261 | } | ||
262 | |||
263 | public bool WaitForActivation() | ||
264 | { | ||
265 | // Wait for 30s. If that elapses, return false and run without caps | ||
266 | return m_capsActive.WaitOne(30000); | ||
267 | } | ||
255 | } | 268 | } |
256 | } \ No newline at end of file | 269 | } \ No newline at end of file |