mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Don't unregister receiver unless it was registered.
This commit is contained in:
@@ -40,6 +40,7 @@ class DozeWatchdogImpl implements DozeWatchdog, Service {
|
||||
|
||||
@Override
|
||||
public void stopService() throws ServiceException {
|
||||
if (SDK_INT < 23) return;
|
||||
appContext.unregisterReceiver(receiver);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user