Fix windows build

This commit is contained in:
Michael Insel 2018-08-05 20:17:43 +02:00
parent 51b900b307
commit eea42c6807
1 changed files with 4 additions and 1 deletions

View File

@ -533,9 +533,10 @@ void ConsoleCommand::ExecuteScriptCompletionHandler(boost::mutex& mutex, boost::
Log(LogCritical, "ConsoleCommand")
<< "HTTP query failed: " << ex.what();
#ifdef HAVE_EDITLINE
/* Ensures that the terminal state is resetted */
rl_deprep_terminal();
#endif /* HAVE_EDITLINE */
Application::Exit(EXIT_FAILURE);
}
@ -560,8 +561,10 @@ void ConsoleCommand::AutocompleteScriptCompletionHandler(boost::mutex& mutex, bo
Log(LogCritical, "ConsoleCommand")
<< "HTTP query failed: " << ex.what();
#ifdef HAVE_EDITLINE
/* Ensures that the terminal state is resetted */
rl_deprep_terminal();
#endif /* HAVE_EDITLINE */
Application::Exit(EXIT_FAILURE);
}