safety check

This commit is contained in:
Anthony Ettinger 2017-01-30 22:07:50 -08:00
parent c81e601550
commit 6f365c52a8

View file

@ -86,7 +86,7 @@ var Bing = function (options) {
}, },
timeout: opts.reqTimeout, timeout: opts.reqTimeout,
pool: { pool: {
maxSockets: opts.maxSockets || Infinity maxSockets: opts.maxSockets ? opts.maxSockets : Infinity
} }
}, function (err, res, body) { }, function (err, res, body) {