Log debug message on GameSend connection check

This commit is contained in:
Tixx
2026-08-02 13:06:33 +02:00
committed by GitHub
parent 2a92a08587
commit 901b7df809
+3 -1
View File
@@ -62,8 +62,10 @@ bool CheckBytes(uint32_t Bytes) {
}
void GameSend(std::string_view Data) {
if (!GConnected)
if (!GConnected) {
debug("Tried to call GameSend but socket was not connected. Data: " + Data)
return;
}
static std::mutex Lock;
std::scoped_lock Guard(Lock);
auto ToSend = Utils::PrependHeader<std::string_view>(Data);