From 8d3cbbdc3a9e8f7e3dfa6560e703bbe9a26e28ca Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Fri, 19 Jul 2019 22:18:20 +0200 Subject: [PATCH] removed stuff --- native/serverconnection/src/connection/ServerConnection.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/native/serverconnection/src/connection/ServerConnection.cpp b/native/serverconnection/src/connection/ServerConnection.cpp index eecf4ed..40775b5 100644 --- a/native/serverconnection/src/connection/ServerConnection.cpp +++ b/native/serverconnection/src/connection/ServerConnection.cpp @@ -487,11 +487,16 @@ void ServerConnection::send_voice_data(const void *buffer, size_t buffer_length, if(head) /* head packet */ packet->enable_flag(ts::protocol::PacketFlag::Compressed); + +#ifdef FUZZ_VOICE if((rand() % 10) < 2) { log_info(category::connection, tr("Dropping voice packet")); } else { this->protocol_handler->send_packet(packet); } +#else + this->protocol_handler->send_packet(packet); +#endif } void ServerConnection::close_connection() {