mirror of
https://github.com/vacp2p/nim-libp2p-experimental.git
synced 2025-01-12 03:14:15 +00:00
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…
x
Reference in New Issue
Block a user