Skip to content

Commit

Permalink
Fix console hangup on windows in combination with jansi after typing …
Browse files Browse the repository at this point in the history
…one char
  • Loading branch information
derklaro authored and gnodet committed Oct 28, 2020
1 parent cb68c25 commit d609de1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ protected boolean processConsoleInput() throws IOException {
INPUT_RECORD[] events;
long console = GetStdHandle (STD_INPUT_HANDLE);
if (console != INVALID_HANDLE_VALUE
&& WaitForSingleObject(console, 100) != 0) {
&& WaitForSingleObject(console, 100) == 0) {
events = readConsoleInputHelper(console, 1, false);
} else {
return false;
Expand Down

0 comments on commit d609de1

Please sign in to comment.