mirror of https://github.com/status-im/nim-eth.git
The end of the dispatchMessages loop is not really an error
This commit is contained in:
parent
1cc52976df
commit
c4da31505e
|
@ -1223,7 +1223,8 @@ proc postHelloSteps(peer: Peer, h: devp2p.hello) {.async.} =
|
||||||
|
|
||||||
messageProcessingLoop.callback = proc(p: pointer) {.gcsafe.} =
|
messageProcessingLoop.callback = proc(p: pointer) {.gcsafe.} =
|
||||||
if messageProcessingLoop.failed:
|
if messageProcessingLoop.failed:
|
||||||
error "dispatchMessages failed", err = messageProcessingLoop.error.msg
|
debug "Ending dispatchMessages loop", peer,
|
||||||
|
err = messageProcessingLoop.error.msg
|
||||||
asyncDiscard peer.disconnect(ClientQuitting)
|
asyncDiscard peer.disconnect(ClientQuitting)
|
||||||
|
|
||||||
# The handshake may involve multiple async steps, so we wait
|
# The handshake may involve multiple async steps, so we wait
|
||||||
|
|
Loading…
Reference in New Issue