8000
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 16f915f commit 9f5c864Copy full SHA for 9f5c864
peer/channel.go
@@ -6,7 +6,6 @@ import (
6
"io"
7
"net"
8
"sync"
9
- "time"
10
11
"github.com/pion/datachannel"
12
"github.com/pion/webrtc/v3"
@@ -245,13 +244,6 @@ func (c *Channel) Write(bytes []byte) (n int, err error) {
245
244
if c.dc.BufferedAmount()+uint64(len(bytes)) >= maxBufferedAmount {
246
<-c.sendMore
247
}
248
- // REMARK: There's an obvious race-condition here. This is an edge-case, as
249
- // most-frequently data won't be pooled so synchronously, but is
250
- // definitely possible.
251
- //
252
- // See: https://github.com/pion/sctp/issues/181
253
- time.Sleep(time.Microsecond)
254
-
255
return c.rwc.Write(bytes)
256
257
0 commit comments