1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-06-27 19:12:07 +02:00

Remove cfg and forwardingChannel globals in forwarding package

This commit is contained in:
Alexandre Iooss
2020-10-04 20:16:29 +02:00
parent 4f320a90b5
commit 606542f622
5 changed files with 19 additions and 24 deletions

View File

@ -281,7 +281,6 @@ func Serve(remoteSdpChan, localSdpChan chan webrtc.SessionDescription, inputChan
for {
// Wait for incoming session description
// then send the local description to browser
offer := <-remoteSdpChan
localSdpChan <- newPeerHandler(offer, cfg)
localSdpChan <- newPeerHandler(<-remoteSdpChan, cfg)
}
}