mirror of
https://github.com/clangen/musikcube.git
synced 2025-03-29 19:20:28 +00:00
Added a bit of missing error handling to StreamingPlaybackService.
Surprising this hasn't caused problems yet.
This commit is contained in:
parent
2d0978a3de
commit
a5b7ab5107
@ -726,6 +726,9 @@ public class StreamingPlaybackService implements PlaybackService {
|
||||
}
|
||||
}
|
||||
})
|
||||
.doOnError(error -> {
|
||||
Log.e(TAG, "failed to prefetch next track!", error);
|
||||
})
|
||||
.subscribe();
|
||||
}
|
||||
}
|
||||
@ -772,6 +775,10 @@ public class StreamingPlaybackService implements PlaybackService {
|
||||
}
|
||||
}
|
||||
})
|
||||
.doOnError(error -> {
|
||||
Log.e(TAG, "failed to load track to play!", error);
|
||||
setState(PlaybackState.Stopped);
|
||||
})
|
||||
.subscribe();
|
||||
}
|
||||
|
||||
@ -799,6 +806,9 @@ public class StreamingPlaybackService implements PlaybackService {
|
||||
}
|
||||
}
|
||||
})
|
||||
.doOnError(error -> {
|
||||
Log.e(TAG, "failed to prefetch track metadata!", error);
|
||||
})
|
||||
.subscribe();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user