fix: remove addTransceiver call after addTrack

pull/1/head
Benyamin Azarkhazin 2023-08-07 15:40:29 +03:30
parent eda46cb7ef
commit e71790d80d
Signed by: benyamin
GPG Key ID: 3AE44F5623C70269
2 changed files with 1 additions and 6 deletions

2
app.go
View File

@ -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)
}() }()

View File

@ -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 {