We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5766289 commit c0d8fbbCopy full SHA for c0d8fbb
1 file changed
core/src/main/java/xyz/gianlu/librespot/mercury/MercuryClient.java
@@ -247,10 +247,10 @@ public void close() {
247
}
248
249
while (true) {
250
- if (callbacks.isEmpty()) {
251
- break;
252
- } else {
253
- synchronized (callbacks) {
+ synchronized (callbacks) {
+ if (callbacks.isEmpty()) {
+ break;
+ } else {
254
try {
255
callbacks.wait(100);
256
} catch (InterruptedException ignored) {
0 commit comments