fix missing reset on write errors
This commit is contained in:
parent
73565c04a3
commit
71d32b2f3d
1
comm.go
1
comm.go
|
@ -86,6 +86,7 @@ func (p *PubSub) handleSendingMessages(ctx context.Context, s inet.Stream, outgo
|
||||||
case p.peerDead <- s.Conn().RemotePeer():
|
case p.peerDead <- s.Conn().RemotePeer():
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
}
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue