2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-09-05 08:35:10 +00:00
Apparently removeLink can be called when there are no links already
This commit is contained in:
Albert Vaca Cintora
2019-11-24 22:52:47 +01:00
parent 63d452908f
commit 5907517d91

View File

@@ -534,8 +534,10 @@ public class Device implements BaseLink.PacketReceiver {
Log.i("KDE/Device", "removeLink: " + link.getLinkProvider().getName() + " -> " + getName() + " active links: " + links.size());
if (links.isEmpty()) {
reloadPluginsFromSettings();
packetQueue.disconnected();
packetQueue = null;
if (packetQueue != null) {
packetQueue.disconnected();
packetQueue = null;
}
}
}