From 929fa3efbdb9e8f2a58e642de8d1d26a25aa1938 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Fri, 1 May 2020 15:42:02 +0100 Subject: [PATCH] dispose of jobengine queue --- OpenSim/Framework/Monitoring/JobEngine.cs | 8 ++++++++ 1 file changed, 8 insertions(+) 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; + } } } }