From b2f528a016530cdd7f47581155b7a6249e9528da Mon Sep 17 00:00:00 2001 From: sjlleo Date: Wed, 20 Jul 2022 07:47:46 +0200 Subject: [PATCH] =?UTF-8?q?update:=20=E6=96=AD=E7=BA=BF=E9=87=8D=E8=BF=9E?= =?UTF-8?q?=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wshandle/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wshandle/client.go b/wshandle/client.go index abe3c03..f87b0fb 100644 --- a/wshandle/client.go +++ b/wshandle/client.go @@ -30,6 +30,7 @@ func (c *WsConn) keepAlive() { if !c.Connected && !c.Connecting { c.Connecting = true New() + log.Println("WebSocket 连接意外断开,正在尝试重连...") } } } @@ -99,7 +100,6 @@ func createWsConn() *WsConn { MsgSendCh: make(chan string), MsgReceiveCh: make(chan string), } - log.Println("WebSocket 连接意外断开,正在尝试重连...") if err != nil { log.Println("dial:", err)