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:
@ -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]
|
||||
|
Reference in New Issue
Block a user