Browse Source

Reset ping time on reconnect

Volodymyr Tkach 2 years ago
parent
commit
10eeb803f7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      pubsub/go_reconnector.go

+ 2 - 0
pubsub/go_reconnector.go

@@ -28,6 +28,8 @@ func go_reconnector(c *Connection) {
 						}
 					} else {
 						c.onInfo("reconnected successfully")
+						c.ping_start = time.Now()
+						c.ping_sended = false
 						c.Connection = conn
 						c.active = true
 						c.onConnect()