Skip to content

Instantly share code, notes, and snippets.

@kahrl
Created October 14, 2014 00:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kahrl/9f28eca10f3d62c9bd63 to your computer and use it in GitHub Desktop.
Save kahrl/9f28eca10f3d62c9bd63 to your computer and use it in GitHub Desktop.
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