diff --git a/trunk/3rdparty/srs-bench/srs/util.go b/trunk/3rdparty/srs-bench/srs/util.go index 2c96f4f54..941b0bb76 100644 --- a/trunk/3rdparty/srs-bench/srs/util.go +++ b/trunk/3rdparty/srs-bench/srs/util.go @@ -606,12 +606,10 @@ func NewTestWebRTCAPI(options ...TestWebRTCAPIOptionFunc) (*TestWebRTCAPI, error func (v *TestWebRTCAPI) Close() error { if v.proxy != nil { v.proxy.Close() - v.proxy = nil } if v.router != nil { v.router.Stop() - v.router = nil } return nil @@ -702,13 +700,11 @@ func NewTestPlayer(api *TestWebRTCAPI, options ...TestPlayerOptionFunc) (*TestPl func (v *TestPlayer) Close() error { if v.pc != nil { v.pc.Close() - v.pc = nil } for _, receiver := range v.receivers { receiver.Stop() } - v.receivers = nil return nil }