1
This commit is contained in:
@@ -82,9 +82,9 @@ func PingTimer() {
|
||||
ticker := time.NewTicker(heartbeatInterval)
|
||||
defer ticker.Stop()
|
||||
//测试用
|
||||
i := 0
|
||||
//i := 0
|
||||
for {
|
||||
i++
|
||||
//i++
|
||||
<-ticker.C
|
||||
for clientId, conn := range Manager.AllClient() {
|
||||
if conn.ClientType == ClientTypeJx {
|
||||
@@ -101,7 +101,7 @@ func PingTimer() {
|
||||
MtInit()
|
||||
}
|
||||
}
|
||||
globals.SugarLogger.Debugf("发送心跳 clientId=%s,i=%d", clientId, i)
|
||||
//globals.SugarLogger.Debugf("发送心跳 clientId=%s,i=%d", clientId, i)
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user