Skip to content

Commit

Permalink
debug: Memory leak when logout
Browse files Browse the repository at this point in the history
  • Loading branch information
skiffer-git committed May 11, 2022
1 parent 16abb1f commit 6b012ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/login/init_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ func (u *LoginMgr) logout(callback open_im_sdk_callback.Base, operationID string
log.Warn(operationID, "login mgr == nil")
return
}
log.Warn(operationID, "logout close channel ", mgr.heartbeatCmdCh, mgr.cmdWsCh, mgr.pushMsgAndMaxSeqCh, mgr.conversationCh, mgr.loginUserID)
log.Warn(operationID, "logout close channel ", mgr.heartbeatCmdCh, mgr.cmdWsCh, mgr.pushMsgAndMaxSeqCh, mgr.conversationCh, mgr.loginUserID)
close(mgr.heartbeatCmdCh)
close(mgr.cmdWsCh)
close(mgr.pushMsgAndMaxSeqCh)
Expand Down

0 comments on commit 6b012ea

Please sign in to comment.