diff --git a/OpenSim/Framework/Monitoring/JobEngine.cs b/OpenSim/Framework/Monitoring/JobEngine.cs index 44f5d9a9d7..a32e4aa58e 100644 --- a/OpenSim/Framework/Monitoring/JobEngine.cs +++ b/OpenSim/Framework/Monitoring/JobEngine.cs @@ -78,7 +78,7 @@ namespace OpenSim.Framework.Monitoring private BlockingCollection m_jobQueue; - private CancellationTokenSource m_cancelSource = new CancellationTokenSource(); + private CancellationTokenSource m_cancelSource; /// /// Used to signal that we are ready to complete stop. @@ -105,6 +105,7 @@ namespace OpenSim.Framework.Monitoring m_finishedProcessingAfterStop.Reset(); m_jobQueue = new BlockingCollection(new ConcurrentQueue(), 5000); + m_cancelSource = new CancellationTokenSource(); WorkManager.StartThread( ProcessRequests,