From 840398ce6ef820481023966bf9859b9f8360b9ca Mon Sep 17 00:00:00 2001 From: Riecko Date: Wed, 4 Sep 2024 20:42:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Heartbeat=20scheduled=20t?= =?UTF-8?q?ask=20repeats=20during=20reconnection=20(#38)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/core/session/session_handle.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/core/session/session_handle.go b/app/core/session/session_handle.go index 362f107..28a8d5d 100644 --- a/app/core/session/session_handle.go +++ b/app/core/session/session_handle.go @@ -146,6 +146,7 @@ func (s *State) wsConnectSuccess() { func (s *State) wsConnectFail() error { log.Errorf("ws connect fail") + s.HeartBeatCron.Clear() s.FSM.Event(context.Background(), EventWsConnectFail) return nil }