re-assign node for room if existing node for room is no longer available

This commit is contained in:
David Zhao
2021-02-20 21:09:04 -08:00
parent 1ce27be1b3
commit a010b618af
9 changed files with 106 additions and 49 deletions
+4 -1
View File
@@ -507,7 +507,10 @@ func (c *RTCClient) handleAnswer(desc webrtc.SessionDescription) error {
}
func (c *RTCClient) negotiate() {
logger.Debugw("starting negotiation", "participant", c.localParticipant.Identity)
if c.localParticipant != nil {
logger.Debugw("starting negotiation", "participant", c.localParticipant.Identity)
}
offer, err := c.publisher.PeerConnection().CreateOffer(nil)
if err != nil {
return