2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-22 09:58:08 +00:00

Do not unpair on every handshake error.

Sometimes we get stupid errors like "connection closed by peer".

BUG: 368812
This commit is contained in:
Albert Vaca 2016-09-20 10:53:10 +02:00
parent 103f24c140
commit 1a32f8142d

View File

@ -247,14 +247,6 @@ public class LanLinkProvider extends BaseLinkProvider implements LanLink.LinkDis
} catch (Exception e) {
Log.e("KDE/LanLinkProvider","Handshake failed with " + identityPackage.getString("deviceName"));
e.printStackTrace();
BackgroundService.RunCommand(context, new BackgroundService.InstanceCallback() {
@Override
public void onServiceStart(BackgroundService service) {
Device device = service.getDevice(deviceId);
if (device == null) return;
device.unpair();
}
});
//String[] ciphers = sslsocket.getSupportedCipherSuites();
//for (String cipher : ciphers) {