mirror of https://github.com/vacp2p/nim-libp2p.git
wstransport.nim: avoid re-raising 'TransportOsError' to avoid stopping `switch.accept` (#929)
This commit is contained in:
parent
c45f9705ab
commit
74c402ed9d
|
@ -284,8 +284,7 @@ method accept*(self: WsTransport): Future[Connection] {.async, gcsafe.} =
|
|||
except CancelledError as exc:
|
||||
raise exc
|
||||
except TransportOsError as exc:
|
||||
info "OS Error", exc = exc.msg
|
||||
raise exc
|
||||
debug "OS Error", exc = exc.msg
|
||||
except CatchableError as exc:
|
||||
info "Unexpected error accepting connection", exc = exc.msg
|
||||
raise exc
|
||||
|
|
Loading…
Reference in New Issue