From 6b1b104e1d9740867c55ef7fd589b74427f03835 Mon Sep 17 00:00:00 2001 From: Christopher Date: Wed, 10 Jun 2020 15:53:30 +0200 Subject: [PATCH] add rate limit --- src/DataValue.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/DataValue.cs b/src/DataValue.cs index 77ac9d9..f0a0eb8 100644 --- a/src/DataValue.cs +++ b/src/DataValue.cs @@ -11,8 +11,6 @@ using System.Linq; using System.Reflection; using System.Security.Cryptography; using System.Text; -using System.Threading; -using System.Threading.Tasks; using System.Timers; [assembly: Addin("DataValueModule", "0.1")] @@ -146,7 +144,7 @@ namespace OpenSim.Modules.DataValue public void RemoveRegion(Scene scene) { - + m_timer.Stop(); } #endregion @@ -160,10 +158,10 @@ namespace OpenSim.Modules.DataValue if (m_enabledRateLimit) { if (m_rateLimit >= 100) - Thread.Sleep(300); + System.Threading.Thread.Sleep(300); if (m_rateLimit >= 200) - Thread.Sleep(600); + System.Threading.Thread.Sleep(600); } }