Merge pull request #159 from yciabaud/numwant

Double default numwant for webrtc trackers (now Chrome 51 is released)
This commit is contained in:
Feross Aboukhadijeh 2016-06-07 13:50:18 -07:00
commit 92a0710026

View File

@ -61,7 +61,7 @@ WebSocketTracker.prototype.announce = function (opts) {
self._send(params) self._send(params)
} else { } else {
// Limit the number of offers that are generated, since it can be slow // Limit the number of offers that are generated, since it can be slow
var numwant = Math.min(opts.numwant, 5) var numwant = Math.min(opts.numwant, 10)
self._generateOffers(numwant, function (offers) { self._generateOffers(numwant, function (offers) {
params.numwant = numwant params.numwant = numwant