Added a bit of missing error handling to StreamingPlaybackService.

Surprising this hasn't caused problems yet.
This commit is contained in:
casey langen 2017-05-29 20:03:39 -07:00
parent 2d0978a3de
commit a5b7ab5107

View File

@ -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();
}