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:
@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user