Browse Source

Close ping stream when we exit the loop (#1853)

pull/1855/head
Marco Munizaga 2 years ago
committed by GitHub
parent
commit
14a37349c0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      p2p/protocol/ping/ping.go

2
p2p/protocol/ping/ping.go

@ -71,7 +71,7 @@ func (p *PingService) PingHandler(s network.Stream) {
log.Error("ping loop failed without error")
}
}
s.Reset()
s.Close()
}()
for {

Loading…
Cancel
Save