From deeb1f3637922d88b475bb3f3794bf0527b631de Mon Sep 17 00:00:00 2001 From: Z Date: Fri, 28 Jun 2024 18:05:01 +0800 Subject: [PATCH] fixed interval set exception --- addons/EGFramework/Module/EGMessage.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/EGFramework/Module/EGMessage.cs b/addons/EGFramework/Module/EGMessage.cs index b1c38c4..3d89395 100644 --- a/addons/EGFramework/Module/EGMessage.cs +++ b/addons/EGFramework/Module/EGMessage.cs @@ -85,7 +85,9 @@ namespace EGFramework public void SetDelay(int millisecond){ this.SendDelay = millisecond; - RequestTimer.Interval = millisecond; + if(millisecond != 0){ + RequestTimer.Interval = millisecond; + } } }