Skip to content

Commit

Permalink
Remove some debug code
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
  • Loading branch information
Jianhui Zhao committed Sep 10, 2018
1 parent 496979c commit a96aef7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ func (c *Client) keepAlive() {
pingHandler := c.conn.PingHandler()

c.conn.SetPingHandler(func(appData string) error {
rlog.Printf("Recv ping\n")
alive = aliveTimes
return pingHandler(appData)
})
Expand All @@ -167,7 +166,6 @@ func (c *Client) keepAlive() {
return
case <- ticker.C:
alive--
rlog.Printf("alive: %d\n", alive)
if alive == 0 {
return
}
Expand Down

0 comments on commit a96aef7

Please sign in to comment.