mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Garmin: Fix occasional crash when support class is disposed
This commit is contained in:
+3
@@ -200,6 +200,9 @@ public class GarminSupport extends AbstractBTLESingleDeviceSupport implements IC
|
||||
public void dispose() {
|
||||
synchronized (ConnectionMonitor) {
|
||||
LOG.info("Garmin dispose()");
|
||||
if (communicator != null) {
|
||||
communicator.dispose();
|
||||
}
|
||||
GBLocationService.stop(getContext(), getDevice());
|
||||
try {
|
||||
LocalBroadcastManager.getInstance(GBApplication.getContext()).unregisterReceiver(broadcastReceiver);
|
||||
|
||||
Reference in New Issue
Block a user