From 1fd35fb5a49ab6b1e68be89b595c7784fbd78ace Mon Sep 17 00:00:00 2001 From: RasPhilCo Date: Fri, 1 Jun 2018 11:09:26 -0700 Subject: [PATCH] fix: unref prompt timeout (#35) --- src/prompt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prompt.ts b/src/prompt.ts index fbffe2f9..b64b4a8a 100644 --- a/src/prompt.ts +++ b/src/prompt.ts @@ -81,6 +81,6 @@ function normal(options: IPromptConfig, retries = 100): Promise { resolve(data || options.default) } }) - setTimeout(() => reject(), options.timeout || 10000) + setTimeout(() => reject(), options.timeout || 10000).unref() }) }