fix: remove addTransceiver call after addTrack
parent
eda46cb7ef
commit
e71790d80d
2
app.go
2
app.go
|
@ -40,7 +40,7 @@ func (a *App) Init(srcListenAddr string, svcAddr string, logjamBaseUrl string, t
|
||||||
|
|
||||||
{
|
{
|
||||||
sigs := make(chan os.Signal, 1)
|
sigs := make(chan os.Signal, 1)
|
||||||
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM, syscall.SIGKILL, syscall.SIGILL, syscall.SIGSTOP)
|
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM, syscall.SIGKILL, syscall.SIGILL)
|
||||||
go func() {
|
go func() {
|
||||||
a.onDie(<-sigs)
|
a.onDie(<-sigs)
|
||||||
}()
|
}()
|
||||||
|
|
|
@ -275,11 +275,6 @@ func (r *RoomRepository) updatePCTracks(roomId string) {
|
||||||
println(err.Error())
|
println(err.Error())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, err = peer.Conn.AddTransceiverFromTrack(track.TrackLocal)
|
|
||||||
if err != nil {
|
|
||||||
println("t", err.Error())
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for trackId, rtpSender := range alreadySentTracks {
|
for trackId, rtpSender := range alreadySentTracks {
|
||||||
|
|
Loading…
Reference in New Issue