removed stuff

This commit is contained in:
WolverinDEV 2019-07-19 22:18:20 +02:00
parent 26007a51c4
commit 8d3cbbdc3a

View File

@ -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() {