Skip to content

Commit b294481

Browse files
committed
Buffer local and remote messages
1 parent f58a980 commit b294481

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

peer/conn.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ func newWithClientOrServer(servers []webrtc.ICEServer, client bool, opts *ConnOp
7575
dcDisconnectChannel: make(chan struct{}),
7676
dcFailedChannel: make(chan struct{}),
7777
localCandidateChannel: make(chan webrtc.ICECandidateInit),
78-
localSessionDescriptionChannel: make(chan webrtc.SessionDescription),
79-
remoteSessionDescriptionChannel: make(chan webrtc.SessionDescription),
78+
localSessionDescriptionChannel: make(chan webrtc.SessionDescription, 1),
79+
remoteSessionDescriptionChannel: make(chan webrtc.SessionDescription, 1),
8080
}
8181
if client {
8282
// If we're the client, we want to flip the echo and

0 commit comments

Comments
 (0)