Ignore cancellationException

This commit is contained in:
ByteHamster 2019-12-02 13:04:52 +01:00
parent cbcd97f6c9
commit cb3b1f2b1f
1 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
import java.util.List;
import java.util.concurrent.CancellationException;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import java.util.concurrent.ScheduledFuture;
@ -140,7 +141,7 @@ public class PlaybackServiceTaskManager {
if (queueFuture.isDone()) {
try {
return queueFuture.get();
} catch (InterruptedException | ExecutionException e) {
} catch (InterruptedException | ExecutionException | CancellationException e) {
e.printStackTrace();
}
}