make it work for weirder retros

This commit is contained in:
sirjonasxx 2020-05-06 01:33:41 +02:00
parent 1e704ccf3c
commit 530d1651a8

View File

@ -24,7 +24,11 @@ public class IncomingPacketHandler extends PacketHandler {
isEncryptedStream = packet.readBoolean();
outgoingHandler.isEncryptedStream = true;
}
else if (message.getIndex() > 3) {
else if (isDataStream && message.getPacket().structureEquals("s") && message.getPacket().length() > 200) {
((Observable<TrafficListener>)trafficObservables[0]).removeListener(this);
outgoingHandler.isEncryptedStream = true;
}
else if (message.getIndex() > 1) {
((Observable<TrafficListener>)trafficObservables[0]).removeListener(this);
}
}