We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5034ca3 commit f6b76a6Copy full SHA for f6b76a6
peer/channel.go
@@ -105,6 +105,8 @@ func (c *Channel) init() {
105
// write operations to block once the threshold is set.
106
c.dc.SetBufferedAmountLowThreshold(bufferedAmountLowThreshold)
107
c.dc.OnBufferedAmountLow(func() {
108
+ c.closeMutex.Lock()
109
+ defer c.closeMutex.Unlock()
110
if c.isClosed() {
111
return
112
}
0 commit comments