Continue update requests regardless of success/failure

This commit is contained in:
James Lyne 2021-01-24 22:16:20 +00:00
parent d3658e35a2
commit d6587bf21f

View File

@ -67,7 +67,8 @@ export default defineComponent({
}, },
update = () => { update = () => {
store.dispatch(ActionTypes.GET_UPDATE, undefined).then(() => { //TODO: Error notification for repeated failures?
store.dispatch(ActionTypes.GET_UPDATE, undefined).finally(() => {
if(updatesEnabled.value) { if(updatesEnabled.value) {
updateTimeout.value = setTimeout(() => update(), updateInterval.value); updateTimeout.value = setTimeout(() => update(), updateInterval.value);
} }