Ignore compressed packets for voice, there is an issue
This commit is contained in:
+9
@@ -499,6 +499,7 @@ public abstract class AbstractTeamspeakClientSocket
|
||||
|
||||
// Finally, handle compressed bodies
|
||||
if (packet.getBody() instanceof PacketBodyCompressed) {
|
||||
|
||||
Ts3Debugging.debug("[PROTOCOL] DECOMPRESS " + networkPacket.getHeader().getType().name());
|
||||
|
||||
byte[] decompressed = QuickLZ.decompress(((PacketBodyCompressed) packet.getBody()).getCompressed());
|
||||
@@ -554,6 +555,14 @@ public abstract class AbstractTeamspeakClientSocket
|
||||
}
|
||||
networkPacket.getHeader().setGeneration(generation);
|
||||
|
||||
|
||||
// Ignore voice and whisper, there is a decompression issue with them
|
||||
if (networkPacket.getHeader().getPacketFlag(HeaderFlag.COMPRESSED) && (
|
||||
networkPacket.getHeader().getType() == PacketBodyType.VOICE ||
|
||||
networkPacket.getHeader().getType() == PacketBodyType.VOICE_WHISPER
|
||||
))
|
||||
continue;
|
||||
|
||||
// Read packet (decrypt, decompress, etc)
|
||||
Packet packet = readPacketIntl(networkPacket);
|
||||
|
||||
|
||||
+1
@@ -21,6 +21,7 @@ import com.github.manevolent.ts3j.protocol.packet.PacketBody2Command;
|
||||
import com.github.manevolent.ts3j.util.HighPrecisionRecurrentTask;
|
||||
import com.github.manevolent.ts3j.util.Ts3Debugging;
|
||||
|
||||
import java.io.Closeable;
|
||||
import java.io.IOException;
|
||||
import java.net.*;
|
||||
import java.nio.ByteBuffer;
|
||||
|
||||
Reference in New Issue
Block a user