Skip to content

Commit

Permalink
Merge pull request #52 from danielchatfield/fix-callback
Browse files Browse the repository at this point in the history
Fix bug to properly close readline.
  • Loading branch information
SBoudrias committed Jul 28, 2013
2 parents 560e7e8 + c457ecd commit c9302d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/inquirer.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ cli.prompt = function( questions, allDone ) {
process.stdin.removeListener( "keypress", this.onKeypress );

// Close the readline
this.rl.pause();
this.rl.close();
this.rl = null;

Expand Down

0 comments on commit c9302d3

Please sign in to comment.