should retryLater only once

This commit is contained in:
Kylart 2018-03-01 02:42:53 +01:00
parent 9188a0f25b
commit 0ccecb0849
1 changed files with 9 additions and 7 deletions

View File

@ -74,6 +74,7 @@ export default {
log(`Refreshing Releases...`)
const retryLater = (backUp) => {
if (!state.notLoaded) {
log(`An error occurred while getting the latest releases. Retrying in 45 seconds.`)
commit('setInfoSnackbar', 'Could not get the latest releases. Retrying in 45 seconds.', isRoot)
@ -84,6 +85,7 @@ export default {
dispatch('refresh').catch(err => { void (err) })
}, 45 * 1000)
}
}
const backUp = state.releases