fix stopping bolus connection error
This commit is contained in:
parent
eedc38fbcf
commit
1c65a88e49
|
@ -147,8 +147,6 @@ public class CommandQueue {
|
||||||
public static void independentConnect(String reason, Callback callback) {
|
public static void independentConnect(String reason, Callback callback) {
|
||||||
CommandQueue tempCommandQueue = new CommandQueue();
|
CommandQueue tempCommandQueue = new CommandQueue();
|
||||||
tempCommandQueue.readStatus(reason, callback);
|
tempCommandQueue.readStatus(reason, callback);
|
||||||
QueueThread tempThread = new QueueThread(tempCommandQueue);
|
|
||||||
tempThread.start();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// returns true if command is queued
|
// returns true if command is queued
|
||||||
|
|
|
@ -35,7 +35,7 @@ public class QueueThread extends Thread {
|
||||||
private PowerManager.WakeLock mWakeLock;
|
private PowerManager.WakeLock mWakeLock;
|
||||||
|
|
||||||
public QueueThread(CommandQueue queue) {
|
public QueueThread(CommandQueue queue) {
|
||||||
super(QueueThread.class.toString());
|
super();
|
||||||
|
|
||||||
this.queue = queue;
|
this.queue = queue;
|
||||||
PowerManager powerManager = (PowerManager) MainApp.instance().getApplicationContext().getSystemService(Context.POWER_SERVICE);
|
PowerManager powerManager = (PowerManager) MainApp.instance().getApplicationContext().getSystemService(Context.POWER_SERVICE);
|
||||||
|
|
Loading…
Reference in a new issue