mirror of https://github.com/status-im/nim-eth.git
Addressed review comments
This commit is contained in:
parent
dc2b6170b5
commit
c10da74b77
|
@ -1157,7 +1157,7 @@ proc disconnect*(peer: Peer, reason: DisconnectionReason, notifyOtherPeer = fals
|
||||||
var fut = peer.sendDisconnectMsg(reason)
|
var fut = peer.sendDisconnectMsg(reason)
|
||||||
yield fut
|
yield fut
|
||||||
if fut.failed:
|
if fut.failed:
|
||||||
warn "Failed to delived disconnect message", peer
|
debug "Failed to delived disconnect message", peer
|
||||||
try:
|
try:
|
||||||
if not peer.dispatcher.isNil:
|
if not peer.dispatcher.isNil:
|
||||||
await callDisconnectHandlers(peer, reason)
|
await callDisconnectHandlers(peer, reason)
|
||||||
|
|
Loading…
Reference in New Issue