mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-24 00:46:59 +00:00
fixup
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user