Skip to content

Commit

Permalink
Avoid crash when --timeout flag is not supplied.
Browse files Browse the repository at this point in the history
  • Loading branch information
coreh committed Jan 30, 2012
1 parent d637a26 commit 6867541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/up
Expand 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));
}
Expand Down

0 comments on commit 6867541

Please sign in to comment.