From ccbc11c2d65483c88007e2b990c3c1fef298d64d Mon Sep 17 00:00:00 2001 From: winlin Date: Fri, 12 Mar 2021 13:10:10 +0800 Subject: [PATCH] Test: Fix bug for srs-bench. --- trunk/3rdparty/srs-bench/srs/util.go | 4 ---- 1 file changed, 4 deletions(-) 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 }