Commit 99636b57 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

net/id: handle error case

parent 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 is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment