The end of the dispatchMessages loop is not really an error

This commit is contained in:
Zahary Karadjov 2019-03-28 13:14:55 +02:00 committed by zah
parent 1cc52976df
commit c4da31505e
1 changed files with 2 additions and 1 deletions

View File

@ -1223,7 +1223,8 @@ proc postHelloSteps(peer: Peer, h: devp2p.hello) {.async.} =
messageProcessingLoop.callback = proc(p: pointer) {.gcsafe.} =
if messageProcessingLoop.failed:
error "dispatchMessages failed", err = messageProcessingLoop.error.msg
debug "Ending dispatchMessages loop", peer,
err = messageProcessingLoop.error.msg
asyncDiscard peer.disconnect(ClientQuitting)
# The handshake may involve multiple async steps, so we wait