Archived
Catch escaped debug print
This commit is contained in:
1 parent
2d9a822ed7
commit
0a37fac794
1 file changed
+3
-1
@@ -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"))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user