提交 99636b57 作者: Juan Batiz-Benet

net/id: handle error case

上级 923c082d
......@@ -51,10 +51,11 @@ func (ids *IDService) IdentifyConn(c Conn) {
if err != nil {
log.Error("network: unable to open initial stream for %s", ProtocolIdentify)
log.Event(ids.Network.CtxGroup().Context(), "IdentifyOpenFailed", c.RemotePeer())
}
} else {
// ok give the response to our handler.
ids.ResponseHandler(s)
// ok give the response to our handler.
ids.ResponseHandler(s)
}
ids.currmu.Lock()
ch, found := ids.currid[c]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论