fix stopping bolus connection error

This commit is contained in:
Milos Kozak 2018-01-21 22:51:30 +01:00
parent eedc38fbcf
commit 1c65a88e49
2 changed files with 1 additions and 3 deletions

View file

@ -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

View file

@ -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);