提交 08a7cd74 编写于 作者: P Péter Szilágyi 提交者: Jeffrey Wilcke

[release/1.4.11] eth: cancel DAO challenge on peer drop (annoying log)

(cherry picked from commit 91f18ffd)
上级 35d479b6
......@@ -295,6 +295,13 @@ func (pm *ProtocolManager) handle(p *peer) error {
glog.V(logger.Warn).Infof("%v: timed out DAO fork-check, dropping", p)
pm.removePeer(p.id)
})
// Make sure it's cleaned up if the peer dies off
defer func() {
if p.forkDrop != nil {
p.forkDrop.Stop()
p.forkDrop = nil
}
}()
}
// main loop. handle incoming messages.
for {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册