1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Set max timeout to 15 seconds to prevent failed opening of local port (#732)

Signed-off-by: Tim Urista <timothy.urista@gmail.com>
This commit is contained in:
Tim Urista 2020-08-23 23:27:30 -07:00 committed by GitHub
parent 6e645eade0
commit 4a8d1ab205
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()