优化部分小细节

This commit is contained in:
user123456
2025-06-12 17:01:41 +08:00
parent 2c1e368b33
commit 4415ea4d97
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -246,7 +246,7 @@ func (c *Client) readPump() {
_, _, err := c.Conn.ReadMessage()
if err != nil {
if websocket.IsUnexpectedCloseError(err, websocket.CloseGoingAway, websocket.CloseAbnormalClosure) {
fmt.Printf("WebSocket意外关闭: %v\n", err)
fmt.Printf("WebSocket关闭: %v\n", err)
}
break
}