Skip to content

Commit

Permalink
Set pingoutstanding to be false when starting the keepalive, required
Browse files Browse the repository at this point in the history
when reconnecting in some situations.

bug: 475756
  • Loading branch information
Al S-M committed Sep 30, 2015
1 parent 0d95fb8 commit 0c77c5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ping.go
Expand Up @@ -41,6 +41,7 @@ func (l *lastcontact) get() time.Time {

func keepalive(c *Client) {
DEBUG.Println(PNG, "keepalive starting")
c.pingOutstanding = false

for {
select {
Expand Down

0 comments on commit 0c77c5b

Please sign in to comment.