From 686754165794c30b9842bfe8032341e278462d4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Aure=CC=81lio?= Date: Mon, 30 Jan 2012 10:08:11 -0200 Subject: [PATCH] Avoid crash when `--timeout` flag is not supplied. --- bin/up | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/up b/bin/up index 5b4abbf..12c60dd 100755 --- a/bin/up +++ b/bin/up @@ -126,7 +126,7 @@ if (!numWorkers || isNaN(numWorkers)) { var workerTimeout = program.timeout; -if (isNaN(ms(workerTimeout))) { +if (null != workerTimeout && isNaN(ms(workerTimeout))) { error('\n Supplied worker timeout "%s" (%s) is invalid.\n' , program.timeout, ms(workerTimeout)); }