From 098f8a52f76b0087a98bdce813300b2f973648ab Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Thu, 26 May 2022 19:59:40 +0800 Subject: [PATCH] callback --- internal/msg_gateway/gate/ws_server.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/msg_gateway/gate/ws_server.go b/internal/msg_gateway/gate/ws_server.go index daae9e793..360b82926 100644 --- a/internal/msg_gateway/gate/ws_server.go +++ b/internal/msg_gateway/gate/ws_server.go @@ -227,7 +227,10 @@ func (ws *WServer) delUserConn(conn *UserConn) { if err != nil { log.Error(operationID, " close err", "", "uid", uid, "platform", platform) } - callbaclResp := callbackUserOffline(operationID, uid, platform) + callbackResp := callbackUserOffline(operationID, uid, platform) + if callbackResp.ErrCode != 0 { + log.NewError(operationID, utils.GetSelfFuncName(), "callbackUserOffline failed", callbackResp) + } } func (ws *WServer) getUserConn(uid string, platform string) *UserConn {