registerTracks check for err.

This commit is contained in:
Miroslav Šedivý 2021-02-02 19:36:11 +01:00
parent ace7b254a3
commit dd4c67a6c4

View File

@ -106,7 +106,9 @@ func (manager *WebRTCManagerCtx) CreatePeer(session types.Session) (*webrtc.Sess
}
// Register video, audio & data tracks
manager.registerTracks(connection)
if err := manager.registerTracks(connection); err != nil {
return nil, err
}
// Create Offer
offer, err := connection.CreateOffer(nil)