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 cc25d64 commit 5245203Copy full SHA for 5245203
1 file changed
core/src/main/java/xyz/gianlu/librespot/player/PlayerRunner.java
@@ -121,10 +121,12 @@ public boolean pauseAndRelease() {
121
*/
122
public boolean stopAndRelease() {
123
stopMixer();
124
- synchronized (pauseLock) {
125
- try {
126
- pauseLock.wait();
127
- } catch (InterruptedException ignored) {
+ while (!paused) {
+ synchronized (pauseLock) {
+ try {
+ pauseLock.wait(100);
128
+ } catch (InterruptedException ignored) {
129
+ }
130
}
131
132
0 commit comments