Fix network callback for restarted service
This commit is contained in:
parent
667c6e989f
commit
530e55f5f2
|
@ -89,6 +89,7 @@ class StartService: Service(){
|
|||
nFails = 0
|
||||
apiDestroy()
|
||||
connectivityManager?.unregisterNetworkCallback(networkCallback)
|
||||
isCallbackRegistered = false
|
||||
wakeLock?.let {
|
||||
while (it.isHeld) {
|
||||
it.release()
|
||||
|
|
Loading…
Reference in New Issue