mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-03-01 00:35:36 +08:00
完善登录流程的错误处理
This commit is contained in:
@@ -61,13 +61,7 @@ func (k *KcpConnectManager) eventHandle() {
|
||||
k.closeAllKcpConn()
|
||||
}
|
||||
case KcpConnRelogin:
|
||||
kickFinishNotifyChan, ok := event.EventMessage.(chan bool)
|
||||
if !ok {
|
||||
logger.Error("event KcpConnRelogin msg type error")
|
||||
continue
|
||||
}
|
||||
k.forceCloseKcpConn(event.ConvId, kcp.EnetServerRelogin)
|
||||
kickFinishNotifyChan <- true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user