diff --git a/OpenSim/Framework/Monitoring/JobEngine.cs b/OpenSim/Framework/Monitoring/JobEngine.cs index 6c388b3b76..8c486e0df3 100644 --- a/OpenSim/Framework/Monitoring/JobEngine.cs +++ b/OpenSim/Framework/Monitoring/JobEngine.cs @@ -131,7 +131,15 @@ namespace OpenSim.Framework.Monitoring finally { if(m_cancelSource != null) + { m_cancelSource.Dispose(); + m_cancelSource = null; + } + if (m_jobQueue != null) + { + m_jobQueue .Dispose(); + m_jobQueue = null; + } } } }