aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/RestClient.cs
diff options
context:
space:
mode:
authorJohn Hurliman2009-10-09 02:10:53 -0700
committerJohn Hurliman2009-10-09 02:10:53 -0700
commit494a1e922dd5c86ef54d7a83347ec8ba255e0e83 (patch)
treeeb5a6eb7282007d970f672fe044ab60aea895f07 /OpenSim/Framework/Communications/RestClient.cs
parent* Added a lock object for the write functions in LLUDPClientCollection (immut... (diff)
downloadopensim-SC_OLD-494a1e922dd5c86ef54d7a83347ec8ba255e0e83.zip
opensim-SC_OLD-494a1e922dd5c86ef54d7a83347ec8ba255e0e83.tar.gz
opensim-SC_OLD-494a1e922dd5c86ef54d7a83347ec8ba255e0e83.tar.bz2
opensim-SC_OLD-494a1e922dd5c86ef54d7a83347ec8ba255e0e83.tar.xz
Calling .Close() on AutoResetEvent and ManualResetEvent (those classes contain an unmanaged resource that will not automatically be disposed when they are GCed), and commenting out some ManualResetEvents that are not in use yet
Diffstat (limited to 'OpenSim/Framework/Communications/RestClient.cs')
-rw-r--r--OpenSim/Framework/Communications/RestClient.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Framework/Communications/RestClient.cs b/OpenSim/Framework/Communications/RestClient.cs
index d98f47d..a74169e 100644
--- a/OpenSim/Framework/Communications/RestClient.cs
+++ b/OpenSim/Framework/Communications/RestClient.cs
@@ -105,7 +105,7 @@ namespace OpenSim.Framework.Communications
105 /// <summary> 105 /// <summary>
106 /// This flag will help block the main synchroneous method, in case we run in synchroneous mode 106 /// This flag will help block the main synchroneous method, in case we run in synchroneous mode
107 /// </summary> 107 /// </summary>
108 public static ManualResetEvent _allDone = new ManualResetEvent(false); 108 //public static ManualResetEvent _allDone = new ManualResetEvent(false);
109 109
110 /// <summary> 110 /// <summary>
111 /// Default time out period 111 /// Default time out period
@@ -282,12 +282,12 @@ namespace OpenSim.Framework.Communications
282 else 282 else
283 { 283 {
284 s.Close(); 284 s.Close();
285 _allDone.Set(); 285 //_allDone.Set();
286 } 286 }
287 } 287 }
288 catch (Exception e) 288 catch (Exception e)
289 { 289 {
290 _allDone.Set(); 290 //_allDone.Set();
291 _asyncException = e; 291 _asyncException = e;
292 } 292 }
293 } 293 }