1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-30 18:13:54 +08:00

net/id: handle error case

This commit is contained in:
Juan Batiz-Benet
2014-12-24 04:22:51 -08:00
parent 923c082d66
commit 99636b571c

View File

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