Merge pull request #97 from libp2p/reset-temp-err-catcher

reset the temporary error catcher delay after successful accept
This commit is contained in:
Marten Seemann 2021-12-21 00:46:15 -08:00 committed by GitHub
commit c622cb0630
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ func (l *listener) handleIncoming() {
l.err = err
return
}
catcher.Reset()
// gate the connection if applicable
if l.upgrader.ConnGater != nil && !l.upgrader.ConnGater.InterceptAccept(maconn) {