modify cluster logic

This commit is contained in:
zhouyuyan
2017-11-21 14:05:06 +08:00
parent 6a89b627d4
commit 5786e69b01
5 changed files with 18 additions and 2 deletions

View File

@@ -34,6 +34,7 @@ func (c *client) StartPing() {
err := c.WriterPacket(ping)
if err != nil {
log.Error("ping error: ", err)
c.Close()
}
}
}