reset downloading state on get fail

This commit is contained in:
Jeremy Kauffman 2017-07-30 15:57:42 -04:00
parent 64bebd9321
commit 99c13f6444

View file

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