From 1c65a88e49d75281c51115f4f7b130ddb4b21d21 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sun, 21 Jan 2018 22:51:30 +0100 Subject: [PATCH] fix stopping bolus connection error --- .../java/info/nightscout/androidaps/queue/CommandQueue.java | 2 -- .../main/java/info/nightscout/androidaps/queue/QueueThread.java | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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 3e696e9857..04da1cd9a9 100644 --- a/app/src/main/java/info/nightscout/androidaps/queue/CommandQueue.java +++ b/app/src/main/java/info/nightscout/androidaps/queue/CommandQueue.java @@ -147,8 +147,6 @@ public class CommandQueue { public static void independentConnect(String reason, Callback callback) { CommandQueue tempCommandQueue = new CommandQueue(); tempCommandQueue.readStatus(reason, callback); - QueueThread tempThread = new QueueThread(tempCommandQueue); - tempThread.start(); } // returns true if command is queued diff --git a/app/src/main/java/info/nightscout/androidaps/queue/QueueThread.java b/app/src/main/java/info/nightscout/androidaps/queue/QueueThread.java index acff83a1d2..d257bd24d0 100644 --- a/app/src/main/java/info/nightscout/androidaps/queue/QueueThread.java +++ b/app/src/main/java/info/nightscout/androidaps/queue/QueueThread.java @@ -35,7 +35,7 @@ public class QueueThread extends Thread { private PowerManager.WakeLock mWakeLock; public QueueThread(CommandQueue queue) { - super(QueueThread.class.toString()); + super(); this.queue = queue; PowerManager powerManager = (PowerManager) MainApp.instance().getApplicationContext().getSystemService(Context.POWER_SERVICE);