mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
registerTracks check for err.
This commit is contained in:
parent
ace7b254a3
commit
dd4c67a6c4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user