Catch escaped debug print

This commit is contained in:
Jakob Borg 2014-05-28 20:45:29 +02:00
parent 2d9a822ed7
commit 0a37fac794

View File

@ -496,7 +496,9 @@ func (c *rawConnection) pingerLoop() {
}()
select {
case ok := <-rc:
if debug {
l.Debugln(c.id, "<- pong")
}
if !ok {
c.close(fmt.Errorf("ping failure"))
}