From 7a3b48831bfc9c4aa8c39c1e42d5bf5dd73e43c5 Mon Sep 17 00:00:00 2001 From: boris Date: Tue, 1 Jan 2019 20:31:51 +1300 Subject: whole buncha fixes & switching to vmp --- csgo-loader/csgo-server/Networking/TCPServer.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'csgo-loader/csgo-server/Networking/TCPServer.cpp') 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; } -- cgit v1.2.3