mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-28 10:47:46 +00:00
Do not call bluetooth state listener after service is destroyed.
This commit is contained in:
parent
f164ac90db
commit
2b14c98eb0
@ -109,7 +109,7 @@ public class BluetoothStateManager {
|
||||
}
|
||||
|
||||
private void handleBluetoothStateChange() {
|
||||
if (listener != null) listener.onBluetoothStateChanged(isBluetoothAvailable());
|
||||
if (listener != null && !destroyed.get()) listener.onBluetoothStateChanged(isBluetoothAvailable());
|
||||
}
|
||||
|
||||
private boolean isBluetoothAvailable() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user