Skip to content

Commit

Permalink
Catch escaped debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
calmh committed May 28, 2014
1 parent 2d9a822 commit 0a37fac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion protocol/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,9 @@ func (c *rawConnection) pingerLoop() {
}()
select {
case ok := <-rc:
l.Debugln(c.id, "<- pong")
if debug {
l.Debugln(c.id, "<- pong")
}
if !ok {
c.close(fmt.Errorf("ping failure"))
}
Expand Down

0 comments on commit 0a37fac

Please sign in to comment.