Skip to content

Commit

Permalink
Merge pull request #723 from nats-io/ping-pong-fix
Browse files Browse the repository at this point in the history
Fix to ping/pong processing
  • Loading branch information
wallyqs committed Apr 29, 2021
2 parents aa4ab64 + c764a2d commit 5e87f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nats.go
Original file line number Diff line number Diff line change
Expand Up @@ -2810,7 +2810,7 @@ func (nc *Conn) processPong() {
nc.mu.Lock()
if len(nc.pongs) > 0 {
ch = nc.pongs[0]
nc.pongs = nc.pongs[1:]
nc.pongs = append(nc.pongs[:0], nc.pongs[1:]...)
}
nc.pout = 0
nc.mu.Unlock()
Expand Down

0 comments on commit 5e87f99

Please sign in to comment.