From 6a8d097dc525e96bf409543ea029837b2a722f5f Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Tue, 17 Nov 2020 23:25:59 +0100 Subject: [PATCH] fixup --- src/Console.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Console.cpp b/src/Console.cpp index b7e1a4b..dfe7b78 100644 --- a/src/Console.cpp +++ b/src/Console.cpp @@ -179,11 +179,11 @@ void ReadCin() { size_t null_byte_counter = 0; while (true) { int In = _getch(); - info(std::to_string(In)); + //info(std::to_string(In)); if (In == 0) { ++null_byte_counter; - if (null_byte_counter > 0) { - info("too many null bytes in input, this is now assumed to be a background thread - console input is now disabled"); + if (null_byte_counter > 50) { + info(Sec("too many null bytes in input, this is now assumed to be a background thread - console input is now disabled")); break; } }