display download error only when that uri is playing
This commit is contained in:
parent
d43dd78821
commit
17ca490db4
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ function handleLoadVideoError(uri, errorType = '') {
|
||||||
return (dispatch, getState) => {
|
return (dispatch, getState) => {
|
||||||
// suppress error when another media is playing
|
// suppress error when another media is playing
|
||||||
const { playingUri } = getState().content;
|
const { playingUri } = getState().content;
|
||||||
if (!playingUri || playingUri === uri) {
|
if (playingUri && playingUri === uri) {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: ACTIONS.LOADING_VIDEO_FAILED,
|
type: ACTIONS.LOADING_VIDEO_FAILED,
|
||||||
data: { uri },
|
data: { uri },
|
||||||
|
|
Loading…
Reference in a new issue