Fix queue handling if only server or client operation is present

This commit is contained in:
Andreas Böhler 2019-02-05 18:46:54 +01:00
parent 6577ad69b0
commit 88ac816393

View File

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