feat(ws log): Add err log when client stop the ws connection. (#158)

This commit is contained in:
maskpp
2022-12-13 11:47:31 +08:00
committed by GitHub
parent d2a30504e9
commit 41414e36bc

View File

@@ -81,7 +81,8 @@ func (m *Manager) Register(ctx context.Context, authMsg *message.AuthMsg) (*rpc.
select {
case task := <-taskCh:
notifier.Notify(rpcSub.ID, task) //nolint
case <-rpcSub.Err():
case err := <-rpcSub.Err():
log.Warn("client stopped the ws connection", "err", err)
return
case <-notifier.Closed():
return