reset downloading state on get fail
This commit is contained in:
parent
64bebd9321
commit
99c13f6444
1 changed files with 4 additions and 0 deletions
|
@ -299,6 +299,10 @@ export function doLoadVideo(uri) {
|
|||
dispatch(doDownloadFile(uri, streamInfo));
|
||||
}
|
||||
}).catch(error => {
|
||||
dispatch({
|
||||
type: types.LOADING_VIDEO_FAILED,
|
||||
data: { uri },
|
||||
});
|
||||
dispatch(doAlertError(error));
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue