diff options
| author | boris <wzn@moneybot.cc> | 2019-01-01 20:31:51 +1300 |
|---|---|---|
| committer | boris <wzn@moneybot.cc> | 2019-01-01 20:31:51 +1300 |
| commit | 7a3b48831bfc9c4aa8c39c1e42d5bf5dd73e43c5 (patch) | |
| tree | 954898c772081536a5ff4dc36a42591608b797c0 /csgo-loader/csgo-server/Networking/TCPServer.cpp | |
| parent | b9702fe8541e61f27f5c788dc72feaefe5abfc0d (diff) | |
whole buncha fixes & switching to vmp
Diffstat (limited to 'csgo-loader/csgo-server/Networking/TCPServer.cpp')
| -rw-r--r-- | csgo-loader/csgo-server/Networking/TCPServer.cpp | 8 |
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;
}
|
