mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-04-18 13:59:53 +00:00
Fix crashing when port checking, remove debug prints
This commit is contained in:
@@ -130,14 +130,10 @@ void warn(const std::string& toPrint) {
|
||||
LogLock.unlock();
|
||||
}
|
||||
void error(const std::string& toPrint) {
|
||||
static int ECounter = 0;
|
||||
LogLock.lock();
|
||||
std::string Print = getDate() + Sec("[ERROR] ") + toPrint + "\n";
|
||||
ConsoleOut(Print);
|
||||
addToLog(Print);
|
||||
if (ECounter > 10)
|
||||
_Exit(7);
|
||||
ECounter++;
|
||||
LogLock.unlock();
|
||||
}
|
||||
void except(const std::string& toPrint) {
|
||||
|
||||
Reference in New Issue
Block a user