[client] Fixed a bug where service loops reconnection after disconnection.service is shut down and can not exit goroutine

This commit is contained in:
lizhisheng 2022-07-12 17:24:23 +08:00
parent fa7c05c617
commit 11c0e56e2a

View File

@ -198,6 +198,10 @@ func (svr *Service) keepControllerWorking() {
}
for {
if atomic.LoadUint32(&svr.exit) != 0 {
return
}
xl.Info("try to reconnect to server...")
conn, session, err := svr.login()
if err != nil {