From b8a6351e72ce6ac1522e8adba3b7438063af3540 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Mon, 28 Aug 2023 10:22:51 +0800 Subject: [PATCH] 11 --- server/websocket/internal/logic/ws_reuse_last_connect.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/websocket/internal/logic/ws_reuse_last_connect.go b/server/websocket/internal/logic/ws_reuse_last_connect.go index bab5d61b..0790024e 100644 --- a/server/websocket/internal/logic/ws_reuse_last_connect.go +++ b/server/websocket/internal/logic/ws_reuse_last_connect.go @@ -45,6 +45,8 @@ func (w *wsConnectItem) reuseLastConnect(data []byte) { } //是当前自己占用(无需处理) if obj.uniqueId == w.uniqueId { + rsp := w.respondDataFormat(constants.WEBSOCKET_CONNECT_SUCCESS, wid) + w.sendToOutChan(rsp) return } else { w.reuseLastConnErrResponse("the wid is used by other people")