зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1464917 - Allow maxPacketLifeTime and maxRetransmits to be zero; r=drno
MozReview-Commit-ID: HtYGXPy6pZ --HG-- extra : rebase_source : 75e153fbf3841d20f7fca80de6905b7ee96f688b
This commit is contained in:
Родитель
869bfa2f23
Коммит
26bdec1e8b
|
@ -1581,9 +1581,9 @@ class RTCPeerConnection {
|
|||
}
|
||||
// Must determine the type where we still know if entries are undefined.
|
||||
let type;
|
||||
if (maxPacketLifeTime) {
|
||||
if (maxPacketLifeTime !== undefined) {
|
||||
type = Ci.IPeerConnection.kDataChannelPartialReliableTimed;
|
||||
} else if (maxRetransmits) {
|
||||
} else if (maxRetransmits !== undefined) {
|
||||
type = Ci.IPeerConnection.kDataChannelPartialReliableRexmit;
|
||||
} else {
|
||||
type = Ci.IPeerConnection.kDataChannelReliable;
|
||||
|
|
Загрузка…
Ссылка в новой задаче