From 6f365c52a8753c6d0461479a5d757fe1977d1d8d Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Mon, 30 Jan 2017 22:07:50 -0800 Subject: [PATCH] safety check --- lib/bing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bing.js b/lib/bing.js index 2ef69bf..40469da 100644 --- a/lib/bing.js +++ b/lib/bing.js @@ -86,7 +86,7 @@ var Bing = function (options) { }, timeout: opts.reqTimeout, pool: { - maxSockets: opts.maxSockets || Infinity + maxSockets: opts.maxSockets ? opts.maxSockets : Infinity } }, function (err, res, body) {