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