Skip to content

Commit

Permalink
Fix race with icetransport mux
Browse files Browse the repository at this point in the history
  • Loading branch information
sukunrt committed Nov 20, 2024
1 parent e6a86e7 commit b327431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion icetransport.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,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
Expand Down

0 comments on commit b327431

Please sign in to comment.