From 826bd2ac635bbd51f320cdb2efb8e40a075dac2f Mon Sep 17 00:00:00 2001 From: taoshihan1991 <630892807@qq.com> Date: Thu, 25 Mar 2021 11:49:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0=E5=93=8D=E5=BA=94=E6=97=B6=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ws/visitor.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ws/visitor.go b/ws/visitor.go index ca833c0..93d5344 100644 --- a/ws/visitor.go +++ b/ws/visitor.go @@ -74,6 +74,7 @@ func AddVisitorToList(user *User) { str, _ := json.Marshal(msg) if err := oldUser.Conn.WriteMessage(websocket.TextMessage, str); err != nil { oldUser.Conn.Close() + user.UpdateTime = oldUser.UpdateTime delete(ClientList, user.Id) } }