mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 17:11:56 +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) {
|
||||
try {
|
||||
LOG.info("waiting...");
|
||||
if(mTransactions.isEmpty() && mServerTransactions.isEmpty()) {
|
||||
synchronized (mTransactionMonitor) {
|
||||
try {
|
||||
mTransactionMonitor.wait();
|
||||
@ -96,6 +96,7 @@ public final class BtLEQueue {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
Transaction transaction = mTransactions.poll();
|
||||
ServerTransaction serverTransaction = mServerTransactions.poll();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user