2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-31 06:05:12 +00:00

Do not use encryption if the protocol is 6

This commit is contained in:
Albert Vaca
2016-05-31 21:00:18 +02:00
parent 6ecfc5071e
commit 240fa34833

View File

@@ -621,7 +621,7 @@ public class Device implements BaseLink.PackageReceiver {
@Override
public void run() {
boolean useEncryption = (!np.getType().equals(NetworkPackage.PACKAGE_TYPE_PAIR) && isPaired());
boolean useEncryption = (protocolVersion < 6 && (!np.getType().equals(NetworkPackage.PACKAGE_TYPE_PAIR) && isPaired()));
//Make a copy to avoid concurrent modification exception if the original list changes
for (final BaseLink link : links) {