add more logging to exit

This commit is contained in:
Lion Kortlepel
2024-09-23 22:08:45 +02:00
parent c68cbf8946
commit 02465c529d
3 changed files with 4 additions and 2 deletions

View File

@@ -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