mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
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
This commit is contained in:
@@ -89,6 +89,7 @@ namespace OpenSim.Framework
|
||||
}
|
||||
|
||||
threadFinishEvent.WaitOne();
|
||||
threadFinishEvent.Close();
|
||||
|
||||
if (exception != null)
|
||||
throw new Exception(exception.Message, exception);
|
||||
@@ -148,6 +149,7 @@ namespace OpenSim.Framework
|
||||
}
|
||||
|
||||
threadFinishEvent.WaitOne();
|
||||
threadFinishEvent.Close();
|
||||
|
||||
if (exception != null)
|
||||
throw new Exception(exception.Message, exception);
|
||||
@@ -199,6 +201,7 @@ namespace OpenSim.Framework
|
||||
}
|
||||
|
||||
threadFinishEvent.WaitOne();
|
||||
threadFinishEvent.Close();
|
||||
|
||||
if (exception != null)
|
||||
throw new Exception(exception.Message, exception);
|
||||
|
||||
Reference in New Issue
Block a user