summaryrefslogtreecommitdiff
path: root/csgo-loader/csgo-server/Networking/TCPServer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'csgo-loader/csgo-server/Networking/TCPServer.cpp')
-rw-r--r--csgo-loader/csgo-server/Networking/TCPServer.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/csgo-loader/csgo-server/Networking/TCPServer.cpp b/csgo-loader/csgo-server/Networking/TCPServer.cpp
index d93a710..37a21bc 100644
--- a/csgo-loader/csgo-server/Networking/TCPServer.cpp
+++ b/csgo-loader/csgo-server/Networking/TCPServer.cpp
@@ -22,6 +22,12 @@ namespace Networking
if(Result == -1)
printf("[ E! ] Failed to send %zd bytes to %s. (Socket %04Ix)\n", Bytes.size(), m_IpAddress, m_Socket);
+
+ // Stay in sync with client.
+ ByteArray Array = ReceiveRawBytes();
+
+ if(Array.empty())
+ printf("[ E! ] No client reply.\n");
}
ByteArray TCPConnection::ReceiveRawBytes()
@@ -49,8 +55,6 @@ namespace Networking
break;
}
- printf("[ <= ] Received %zd bytes from %s.\n", ReceivedBytes.size(), m_IpAddress);
-
return ReceivedBytes;
}