aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Monitoring/JobEngine.cs
diff options
context:
space:
mode:
authorUbitUmarov2017-05-27 05:47:05 +0100
committerUbitUmarov2017-05-27 05:47:05 +0100
commitc54985f8a16a00032a3647112555b5c82b43efde (patch)
tree862483e0e10e4862e99b5437340e326df3f3f072 /OpenSim/Framework/Monitoring/JobEngine.cs
parentMerge branch 'master' into httptests (diff)
parentminor cleanup (diff)
downloadopensim-SC-c54985f8a16a00032a3647112555b5c82b43efde.zip
opensim-SC-c54985f8a16a00032a3647112555b5c82b43efde.tar.gz
opensim-SC-c54985f8a16a00032a3647112555b5c82b43efde.tar.bz2
opensim-SC-c54985f8a16a00032a3647112555b5c82b43efde.tar.xz
Merge branch 'master' into httptests
Diffstat (limited to 'OpenSim/Framework/Monitoring/JobEngine.cs')
-rw-r--r--OpenSim/Framework/Monitoring/JobEngine.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Framework/Monitoring/JobEngine.cs b/OpenSim/Framework/Monitoring/JobEngine.cs
index 0a39e4b..a6a059d 100644
--- a/OpenSim/Framework/Monitoring/JobEngine.cs
+++ b/OpenSim/Framework/Monitoring/JobEngine.cs
@@ -136,12 +136,15 @@ namespace OpenSim.Framework.Monitoring
136 if(m_jobQueue.Count <= 0) 136 if(m_jobQueue.Count <= 0)
137 m_cancelSource.Cancel(); 137 m_cancelSource.Cancel();
138 138
139 if(m_finishedProcessingAfterStop.WaitOne(RequestProcessTimeoutOnStop)) 139 m_finishedProcessingAfterStop.WaitOne(RequestProcessTimeoutOnStop);
140 m_finishedProcessingAfterStop.Close(); 140 m_finishedProcessingAfterStop.Close();
141 } 141 }
142 finally 142 finally
143 { 143 {
144 m_cancelSource.Dispose(); 144 if(m_cancelSource != null)
145 m_cancelSource.Dispose();
146 if(m_finishedProcessingAfterStop != null)
147 m_finishedProcessingAfterStop.Dispose();
145 } 148 }
146 } 149 }
147 } 150 }