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:
@@ -798,4 +798,9 @@ public class Device implements BaseLink.PackageReceiver {
|
||||
pluginsChangedListeners.remove(listener);
|
||||
}
|
||||
|
||||
public void disconnect() {
|
||||
for(BaseLink link : links) {
|
||||
link.disconnect();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user