Skip to content

Commit

Permalink
[#317] Log informing that the underlying semaphore in a QueueSemaphor…
Browse files Browse the repository at this point in the history
…e has been interrupted will be printed only when the situation was unexpected.
  • Loading branch information
uKL committed Nov 16, 2017
1 parent aceb028 commit 9cf555b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ public synchronized void awaitRelease() throws InterruptedException {
try {
wait();
} catch (InterruptedException e) {
RxBleLog.v(e, "Interrupted awaitRelease()");
if (!isReleased.get()) {
RxBleLog.w(e, "Queue's awaitRelease() has been interrupted abruptly "
+ "while it wasn't released byte release() method.");
}
}
}
}
Expand Down

0 comments on commit 9cf555b

Please sign in to comment.