From 77904cd1fdab557c303cb9c71eee6041c39a8943 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Tue, 17 Dec 2019 16:27:36 +0100 Subject: [PATCH] stopBolusDelivering not in UI thread --- .../java/info/nightscout/androidaps/queue/CommandQueue.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/queue/CommandQueue.java b/app/src/main/java/info/nightscout/androidaps/queue/CommandQueue.java index f24b02171f..35d33ab884 100644 --- a/app/src/main/java/info/nightscout/androidaps/queue/CommandQueue.java +++ b/app/src/main/java/info/nightscout/androidaps/queue/CommandQueue.java @@ -279,7 +279,7 @@ public class CommandQueue { } removeAll(Command.CommandType.BOLUS); removeAll(Command.CommandType.SMB_BOLUS); - ConfigBuilderPlugin.getPlugin().getActivePump().stopBolusDelivering(); + new Thread(() -> ConfigBuilderPlugin.getPlugin().getActivePump().stopBolusDelivering()).run(); } // returns true if command is queued