cleanup
This commit is contained in:
parent
e174f3982b
commit
69a5d46be6
|
@ -111,20 +111,13 @@ class OmnipodDashPumpPlugin @Inject constructor(
|
||||||
updatePodWarnings()
|
updatePodWarnings()
|
||||||
aapsLogger.info(LTag.PUMP, "statusChecker")
|
aapsLogger.info(LTag.PUMP, "statusChecker")
|
||||||
|
|
||||||
val err = createFakeTBRWhenNoActivePod()
|
createFakeTBRWhenNoActivePod()
|
||||||
.subscribeOn(aapsSchedulers.io)
|
.subscribeOn(aapsSchedulers.io)
|
||||||
.subscribeBy(
|
.subscribeBy(
|
||||||
onError = {
|
onError = {
|
||||||
aapsLogger.warn(LTag.PUMP, "Error on createFakeTBRWhenNoActivePod=$it")
|
aapsLogger.warn(LTag.PUMP, "Error on createFakeTBRWhenNoActivePod=$it")
|
||||||
},
|
|
||||||
onComplete = {
|
|
||||||
aapsLogger.warn(LTag.PUMP, "createFakeTBRWhenNoActivePod complete")
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
aapsLogger.info(LTag.PUMP, "status checker err=$err")
|
|
||||||
err?.let {
|
|
||||||
aapsLogger.warn(LTag.PUMP, "Error on createFakeTBRWhenNoActivePod=$it")
|
|
||||||
}
|
|
||||||
handler.postDelayed(statusChecker, STATUS_CHECK_INTERVAL_MS)
|
handler.postDelayed(statusChecker, STATUS_CHECK_INTERVAL_MS)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue