fix heartbeat error

This commit is contained in:
fatedier committed 2017-03-27 17:25:25 +08:00
1 parent 58d0d41501
commit 30aeaf968e
2 files changed
+6 -1

No files matched your search

+1
View File
@@ -318,6 +318,7 @@ func (ctl *Control) manager() {
ctl.sendCh <- resp
case *msg.Ping:
ctl.lastPing = time.Now()
ctl.conn.Debug("receive heartbeat")
ctl.sendCh <- &msg.Pong{}
}
}