display the performed operation
This commit is contained in:
parent
3a9213992b
commit
6ab2a7bb7e
1 changed files with 7 additions and 3 deletions
|
@ -111,14 +111,18 @@ class QueueThread internal constructor(
|
|||
// Pickup 1st command and set performing variable
|
||||
if (queue.size() > 0) {
|
||||
queue.pickup()
|
||||
if (queue.performing() != null) {
|
||||
aapsLogger.debug(LTag.PUMPQUEUE, "performing " + queue.performing()?.status())
|
||||
val cont = queue.performing()?.let {
|
||||
aapsLogger.debug(LTag.PUMPQUEUE, "performing " + it.status())
|
||||
rxBus.send(EventQueueChanged())
|
||||
queue.performing()?.execute()
|
||||
rxBus.send(EventPumpStatusChanged(it.status()))
|
||||
it.execute()
|
||||
queue.resetPerforming()
|
||||
rxBus.send(EventQueueChanged())
|
||||
lastCommandTime = System.currentTimeMillis()
|
||||
SystemClock.sleep(100)
|
||||
true
|
||||
} ?: false
|
||||
if (cont) {
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue