Created
October 14, 2014 00:44
-
-
Save kahrl/9f28eca10f3d62c9bd63 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/connection.cpp b/src/connection.cpp | |
index ee5b1eb..6a97d78 100644 | |
--- a/src/connection.cpp | |
+++ b/src/connection.cpp | |
@@ -1471,6 +1471,8 @@ void ConnectionSendThread::runTimeouts(float dtime) | |
void ConnectionSendThread::rawSend(const BufferedPacket &packet) | |
{ | |
+ if(rand() % 10 == 0) | |
+ return; | |
try{ | |
m_connection->m_udpSocket.Send(packet.address, *packet.data, | |
packet.data.getSize()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment