We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67e1cc3 commit 09cd658Copy full SHA for 09cd658
1 file changed
index.js
@@ -373,7 +373,7 @@ class Peer extends stream.Duplex {
373
this._batchedNegotiation = false
374
if (this.initiator || !this._firstNegotiation) {
375
this._debug('starting batched negotiation')
376
- this.negotiate()
+ this.negotiate(this._isRestarting)
377
} else {
378
this._debug('non-initiator initial negotiation request discarded')
379
}
@@ -716,7 +716,7 @@ class Peer extends stream.Duplex {
716
this._isNegotiating = false
717
this._isRestarting = true
718
719
- this._needsNegotiation(true)
+ this._needsNegotiation()
720
721
} else if (iceConnectionState === 'failed' && !this.iceRestartEnabled) {
722
this.destroy(errCode(new Error('Ice connection failed.'), 'ERR_ICE_CONNECTION_FAILURE'))
0 commit comments