diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 5f0dbd7..28dbccb 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -1623,7 +1623,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
1623 | { | 1623 | { |
1624 | tmpMS = Util.EnvironmentTickCount(); | 1624 | tmpMS = Util.EnvironmentTickCount(); |
1625 | m_cleaningTemps = true; | 1625 | m_cleaningTemps = true; |
1626 | Util.RunThreadNoTimeout(delegate { CleanTempObjects(); m_cleaningTemps = false; }, "CleanTempObjects", null); | 1626 | |
1627 | Watchdog.RunInThread( | ||
1628 | delegate { CleanTempObjects(); m_cleaningTemps = false; }, | ||
1629 | string.Format("CleanTempObjects ({0})", Name), | ||
1630 | null); | ||
1631 | |||
1627 | tempOnRezMS = Util.EnvironmentTickCountSubtract(tmpMS); | 1632 | tempOnRezMS = Util.EnvironmentTickCountSubtract(tmpMS); |
1628 | } | 1633 | } |
1629 | 1634 | ||
@@ -1803,7 +1808,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1803 | if (!m_backingup) | 1808 | if (!m_backingup) |
1804 | { | 1809 | { |
1805 | m_backingup = true; | 1810 | m_backingup = true; |
1806 | Util.RunThreadNoTimeout(BackupWaitCallback, "BackupWaitCallback", null); | 1811 | Watchdog.RunInThread(o => Backup(false), string.Format("BackupWaitCallback ({0})", Name), null); |
1807 | } | 1812 | } |
1808 | } | 1813 | } |
1809 | 1814 | ||
@@ -1814,14 +1819,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
1814 | { | 1819 | { |
1815 | m_eventManager.TriggerOnFrame(); | 1820 | m_eventManager.TriggerOnFrame(); |
1816 | } | 1821 | } |
1817 | |||
1818 | /// <summary> | ||
1819 | /// Wrapper for Backup() that can be called with Util.RunThreadNoTimeout() | ||
1820 | /// </summary> | ||
1821 | private void BackupWaitCallback(object o) | ||
1822 | { | ||
1823 | Backup(false); | ||
1824 | } | ||
1825 | 1822 | ||
1826 | /// <summary> | 1823 | /// <summary> |
1827 | /// Backup the scene. | 1824 | /// Backup the scene. |