mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2025-08-18 12:45:36 +00:00
fixup
This commit is contained in:
parent
e2a45601b3
commit
6a8d097dc5
@ -179,11 +179,11 @@ void ReadCin() {
|
|||||||
size_t null_byte_counter = 0;
|
size_t null_byte_counter = 0;
|
||||||
while (true) {
|
while (true) {
|
||||||
int In = _getch();
|
int In = _getch();
|
||||||
info(std::to_string(In));
|
//info(std::to_string(In));
|
||||||
if (In == 0) {
|
if (In == 0) {
|
||||||
++null_byte_counter;
|
++null_byte_counter;
|
||||||
if (null_byte_counter > 0) {
|
if (null_byte_counter > 50) {
|
||||||
info("too many null bytes in input, this is now assumed to be a background thread - console input is now disabled");
|
info(Sec("too many null bytes in input, this is now assumed to be a background thread - console input is now disabled"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user