refactor: websocket update info.

This commit is contained in:
Gordon 2024-04-16 20:53:37 +08:00
parent 4cd4f680d9
commit 2d0aaccec8

View File

@ -424,7 +424,7 @@ func (ws *WsServer) wsHandler(w http.ResponseWriter, r *http.Request) {
shouldSendSuccessResp := connContext.ShouldSendResp() shouldSendSuccessResp := connContext.ShouldSendResp()
if shouldSendSuccessResp { if shouldSendSuccessResp {
// Attempt to send a success message through WebSocket // Attempt to send a success message through WebSocket
if err := wsLongConn.RespondWithSuccess(); err == nil { if err := wsLongConn.RespondWithSuccess(); err != nil {
// If the success message is successfully sent, end further processing // If the success message is successfully sent, end further processing
return return
} }