From e131e73652cf6ed2407e41c7d83dc67f49ca23ee Mon Sep 17 00:00:00 2001 From: Oren Hurvitz Date: Wed, 29 Jan 2014 16:14:27 +0200 Subject: Run slow operations in a separate thread, instead of using FireAndForget (which has a 1-minute timeout) Resolves http://opensimulator.org/mantis/view.php?id=6945 --- OpenSim/Region/Framework/Scenes/Scene.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs') diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 51f6c5e..726d8e2 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -1509,7 +1509,7 @@ namespace OpenSim.Region.Framework.Scenes { tmpMS = Util.EnvironmentTickCount(); m_cleaningTemps = true; - Util.FireAndForget(delegate { CleanTempObjects(); m_cleaningTemps = false; }); + Util.RunThreadNoTimeout(delegate { CleanTempObjects(); m_cleaningTemps = false; }, "CleanTempObjects", null); tempOnRezMS = Util.EnvironmentTickCountSubtract(tmpMS); } @@ -1682,7 +1682,7 @@ namespace OpenSim.Region.Framework.Scenes if (!m_backingup) { m_backingup = true; - Util.FireAndForget(BackupWaitCallback); + Util.RunThreadNoTimeout(BackupWaitCallback, "BackupWaitCallback", null); } } @@ -1695,7 +1695,7 @@ namespace OpenSim.Region.Framework.Scenes } /// - /// Wrapper for Backup() that can be called with Util.FireAndForget() + /// Wrapper for Backup() that can be called with Util.RunThreadNoTimeout() /// private void BackupWaitCallback(object o) { -- cgit v1.1