From c8ba439a2c39024c004c579ef73c2512870cc7bb Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Fri, 24 Mar 2023 16:56:02 +0800 Subject: [PATCH] ws update --- internal/msggateway/client.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/msggateway/client.go b/internal/msggateway/client.go index 1ba36f458..0f097f7a8 100644 --- a/internal/msggateway/client.go +++ b/internal/msggateway/client.go @@ -71,6 +71,9 @@ func (c *Client) ResetClient(ctx *UserConnContext, conn LongConn, isCompress boo c.userID = ctx.GetUserID() c.ctx = ctx c.longConnServer = longConnServer + c.isBackground = false + c.closed = false + c.closedErr = nil } func (c *Client) pongHandler(_ string) error { c.conn.SetReadDeadline(pongWait)