add comment
This commit is contained in:
parent
20560f2a4e
commit
0fad1bc6c7
1 changed files with 3 additions and 0 deletions
|
@ -466,6 +466,9 @@ class OmnipodDashPumpPlugin @Inject constructor(
|
||||||
},
|
},
|
||||||
onError = { throwable ->
|
onError = { throwable ->
|
||||||
aapsLogger.error(LTag.PUMP, "Error executing command", throwable)
|
aapsLogger.error(LTag.PUMP, "Error executing command", throwable)
|
||||||
|
// Here we assume that onError will be called only BEFORE we manage to send a command
|
||||||
|
// If it gets called later, we will have the command as "not sent" in history and will not try to
|
||||||
|
// get it's final status, even if it was send
|
||||||
podStateManager.resetActiveCommand()
|
podStateManager.resetActiveCommand()
|
||||||
source.onSuccess(
|
source.onSuccess(
|
||||||
PumpEnactResult(injector).success(false).enacted(false).comment(throwable.message)
|
PumpEnactResult(injector).success(false).enacted(false).comment(throwable.message)
|
||||||
|
|
Loading…
Reference in a new issue