mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
Catch escaped debug print
This commit is contained in:
parent
2d9a822ed7
commit
0a37fac794
@ -496,7 +496,9 @@ func (c *rawConnection) pingerLoop() {
|
|||||||
}()
|
}()
|
||||||
select {
|
select {
|
||||||
case ok := <-rc:
|
case ok := <-rc:
|
||||||
l.Debugln(c.id, "<- pong")
|
if debug {
|
||||||
|
l.Debugln(c.id, "<- pong")
|
||||||
|
}
|
||||||
if !ok {
|
if !ok {
|
||||||
c.close(fmt.Errorf("ping failure"))
|
c.close(fmt.Errorf("ping failure"))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user