Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
fix: unref prompt timeout (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
RasPhilCo authored Jun 1, 2018
1 parent 51c6bf5 commit 1fd35fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ function normal(options: IPromptConfig, retries = 100): Promise<string> {
resolve(data || options.default)
}
})
setTimeout(() => reject(), options.timeout || 10000)
setTimeout(() => reject(), options.timeout || 10000).unref()
})
}

0 comments on commit 1fd35fb

Please sign in to comment.