Skip to content

Commit e53cbc4

Browse files
committed
Fix race when closing ICE Transport
Struct member is copied to stack already, `stop` just incorrectly was referencing the member. Found in CI
1 parent ae89317 commit e53cbc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

icetransport.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ func (t *ICETransport) stop(shouldGracefullyClose bool) error {
221221
gatherer := t.gatherer
222222
t.lock.Unlock()
223223

224-
if t.mux != nil {
224+
if mux != nil {
225225
var closeErrs []error
226226
if shouldGracefullyClose && gatherer != nil {
227227
// we can't access icegatherer/icetransport.Close via

0 commit comments

Comments
 (0)