FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix autoreconnection invalid config detection · explodingbarrel/node-scribe@ecd001a · GitHub

Commit ecd001a

Browse files
committed
Fix autoreconnection invalid config detection
Fixes Applifier#6
1 parent 7e5a834 commit ecd001a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/scribe.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var Scribe = exports.Scribe = function(host, port, opt) {
4444
} else if (opt.autoReconnectTimeout.constructor === Array) {
4545
for (var i = 0; i < opt.autoReconnectTimeout.length; i++) {
4646
var timeout = opt.autoReconnectTimeout[i];
47-
if (timeout.constructor === Number) {
47+
if (timeout.constructor !== Number) {
4848
throw new Error("autoReconnectTimeout should be Number or Array of numbers");
4949
}
5050
this.autoReconnectTimeout.push(timeout);
@@ -201,4 +201,4 @@ Scribe.prototype.send = function(category, message) {
201201

202202
this.queue.push(entry);
203203
this.flush();
204-
};
204+
};

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL