mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-08-16 00:06:41 +00:00
add more logging to exit
This commit is contained in:
parent
c68cbf8946
commit
02465c529d
@ -178,8 +178,10 @@ void Parse(std::string Data, SOCKET CSocket) {
|
||||
TCPTerminate = true;
|
||||
ping = -1;
|
||||
}
|
||||
if (SubCode == 'G')
|
||||
if (SubCode == 'G') {
|
||||
debug("Closing via 'G' packet");
|
||||
exit(2);
|
||||
}
|
||||
Data.clear();
|
||||
break;
|
||||
case 'R': // will send mod name
|
||||
|
@ -17,7 +17,6 @@
|
||||
#endif
|
||||
#include "Logger.h"
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
|
||||
|
@ -55,5 +55,6 @@ int main(int argc, char** argv) try {
|
||||
} catch (const std::exception& e) {
|
||||
error(std::string("Exception in main(): ") + e.what());
|
||||
info("Closing in 5 seconds");
|
||||
info("If this keeps happening, contact us on either: Forum: https://forum.beammp.com, Discord: https://discord.gg/beammp");
|
||||
std::this_thread::sleep_for(std::chrono::seconds(5));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user