From ce11073df9c55e87a448055440e856b5aa81cf15 Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Sun, 1 Apr 2018 01:13:34 +0300 Subject: [PATCH] bigger timeout on port check by default --- src/background/isPortReachable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/background/isPortReachable.js b/src/background/isPortReachable.js index 5941f14..be82b44 100644 --- a/src/background/isPortReachable.js +++ b/src/background/isPortReachable.js @@ -4,7 +4,7 @@ const net = require('net'); module.exports = (port, opts) => { - opts = Object.assign({timeout: 1000}, opts); + opts = Object.assign({timeout: 3000}, opts); return new Promise((resolve => { const socket = new net.Socket();