Addressed review comments

This commit is contained in:
Zahary Karadjov 2019-03-26 15:57:40 +02:00 committed by zah
parent dc2b6170b5
commit c10da74b77
1 changed files with 1 additions and 1 deletions

View File

@ -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)