set max timeout to 15 seconds to prevent failed opening of local port

Signed-off-by: Tim Urista <timothy.urista@gmail.com>
This commit is contained in:
Tim Urista committed 2020-08-21 09:23:40 -07:00
1 parent 6e645eade0
commit ead49c2301
1 file changed
+1 -1
+1 -1
View File
@@ -57,7 +57,7 @@ class PortForward {
} }
}) })
try { try {
await tcpPortUsed.waitUntilUsed(this.localPort, 500, 3000) await tcpPortUsed.waitUntilUsed(this.localPort, 500, 15000)
return true return true
} catch (error) { } catch (error) {
this.process.kill() this.process.kill()