Skip to content

Commit 09cd658

Browse files
committed
feature/ice-restart: fix needsNegotiation usage
1 parent 67e1cc3 commit 09cd658

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ class Peer extends stream.Duplex {
373373
this._batchedNegotiation = false
374374
if (this.initiator || !this._firstNegotiation) {
375375
this._debug('starting batched negotiation')
376-
this.negotiate()
376+
this.negotiate(this._isRestarting)
377377
} else {
378378
this._debug('non-initiator initial negotiation request discarded')
379379
}
@@ -716,7 +716,7 @@ class Peer extends stream.Duplex {
716716
this._isNegotiating = false
717717
this._isRestarting = true
718718

719-
this._needsNegotiation(true)
719+
this._needsNegotiation()
720720
}
721721
} else if (iceConnectionState === 'failed' && !this.iceRestartEnabled) {
722722
this.destroy(errCode(new Error('Ice connection failed.'), 'ERR_ICE_CONNECTION_FAILURE'))

0 commit comments

Comments
 (0)