fix missing reset on write errors

This commit is contained in:
vyzo 2018-10-12 12:22:26 +03:00
parent 73565c04a3
commit 71d32b2f3d
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ func (p *PubSub) handleSendingMessages(ctx context.Context, s inet.Stream, outgo
case p.peerDead <- s.Conn().RemotePeer():
case <-ctx.Done():
}
return
}
case <-ctx.Done():
return