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

Reduce the amount of traffic we get

Only connect to the non-paired devices when we're on discovery mode,
otherwise disconnect from them.

Reviewed by Albert Vaca

BUG: 352424
This commit is contained in:
Aleix Pol
2015-09-09 00:45:56 +02:00
parent e68ba07e09
commit 628142307f
6 changed files with 75 additions and 22 deletions

View File

@@ -798,4 +798,9 @@ public class Device implements BaseLink.PackageReceiver {
pluginsChangedListeners.remove(listener);
}
public void disconnect() {
for(BaseLink link : links) {
link.disconnect();
}
}
}