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

Unpair if something goes wrong while loading a remembered device

This commit is contained in:
Albert Vaca
2015-04-12 00:05:15 -07:00
parent 067f01134a
commit bf02f639b7

View File

@@ -102,6 +102,7 @@ public class Device implements BaseLink.PackageReceiver {
publicKey = KeyFactory.getInstance("RSA").generatePublic(new X509EncodedKeySpec(publicKeyBytes));
} catch (Exception e) {
e.printStackTrace();
unpair();
Log.e("KDE/Device","Exception");
}