mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
remove context from webrtc.PeerConnection arguments (#4854)
contexts are useless since there's already PeerConnection.Close().
This commit is contained in:
parent
5ae934887d
commit
b627128d0f
8 changed files with 157 additions and 100 deletions
|
|
@ -2,7 +2,6 @@
|
|||
package webrtc
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"net/url"
|
||||
|
|
@ -62,7 +61,6 @@ func (s *Source) Run(params defs.StaticSourceRunParams) error {
|
|||
URL: u,
|
||||
Log: s,
|
||||
}
|
||||
|
||||
err = client.Initialize(params.Context)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
@ -94,7 +92,7 @@ func (s *Source) Run(params defs.StaticSourceRunParams) error {
|
|||
readErr := make(chan error)
|
||||
|
||||
go func() {
|
||||
readErr <- client.Wait(context.Background())
|
||||
readErr <- client.Wait()
|
||||
}()
|
||||
|
||||
for {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue