Fixed the broken pipe issue

This commit is contained in:
WolverinDEV
2020-04-26 11:29:20 +02:00
parent ac89b3a423
commit cbfd27b954
5 changed files with 17 additions and 10 deletions
@@ -673,7 +673,7 @@ void VoiceClientConnection::send_command(const std::string_view &command, bool l
}
/* we don't need to make the command longer than it is */
if(compressed_size < command.length() || this->client->getType() == ClientType::CLIENT_TEAMSPEAK) { /* TS3 requires each splituped packet to be compressed */
if(compressed_size < command.length() || this->client->getType() == ClientType::CLIENT_TEAMSPEAK) { /* TS3 requires each splituped packet to be compressed (Update: Not 100% sure since there was another bug when discovering this but I've kept it since) */
own_data_buffer = true;
data_buffer = (char*) compressed_buffer;
own_data_buffer_ptr = compressed_buffer;