diff --git a/icetransport.go b/icetransport.go index a86d4f94f1c..448929ca705 100644 --- a/icetransport.go +++ b/icetransport.go @@ -221,7 +221,7 @@ func (t *ICETransport) stop(shouldGracefullyClose bool) error { gatherer := t.gatherer t.lock.Unlock() - if t.mux != nil { + if mux != nil { var closeErrs []error if shouldGracefullyClose && gatherer != nil { // we can't access icegatherer/icetransport.Close via