mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-25 16:15:55 +01:00
Fix queue handling if only server or client operation is present
This commit is contained in:
parent
6577ad69b0
commit
88ac816393
@ -88,7 +88,7 @@ public final class BtLEQueue {
|
|||||||
|
|
||||||
while (!mDisposed && !mCrashed) {
|
while (!mDisposed && !mCrashed) {
|
||||||
try {
|
try {
|
||||||
LOG.info("waiting...");
|
if(mTransactions.isEmpty() && mServerTransactions.isEmpty()) {
|
||||||
synchronized (mTransactionMonitor) {
|
synchronized (mTransactionMonitor) {
|
||||||
try {
|
try {
|
||||||
mTransactionMonitor.wait();
|
mTransactionMonitor.wait();
|
||||||
@ -96,6 +96,7 @@ public final class BtLEQueue {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Transaction transaction = mTransactions.poll();
|
Transaction transaction = mTransactions.poll();
|
||||||
ServerTransaction serverTransaction = mServerTransactions.poll();
|
ServerTransaction serverTransaction = mServerTransactions.poll();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user