diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-12-06 14:10:50 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-12-06 17:02:50 +0300 |
commit | d40f1b8437aa85b67f79063d63d0c65897a4d445 (patch) | |
tree | 200beeada5eb3c179e001503acc041131535fb95 /src | |
parent | d6d1badc1b89b929581fefcef534bf44bf0bd87c (diff) |
Fix public share links
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/EditorWrapper.vue | 4 | ||||
-rw-r--r-- | src/services/PollingBackend.js | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/components/EditorWrapper.vue b/src/components/EditorWrapper.vue index ab1daf877..5b68a390e 100644 --- a/src/components/EditorWrapper.vue +++ b/src/components/EditorWrapper.vue @@ -363,7 +363,9 @@ export default { this.hasConnectionIssue = true // FIXME: ideally we just try to reconnect in the service, so we don't loose steps OC.Notification.showTemporary('Connection failed, reconnecting') - setTimeout(this.reconnect.bind(this), 1000) + if (data.retry !== false) { + setTimeout(this.reconnect.bind(this), 5000) + } } if (error === ERROR_TYPE.SOURCE_NOT_FOUND) { this.initialLoading = false diff --git a/src/services/PollingBackend.js b/src/services/PollingBackend.js index 8a4cc2b35..ad20f1857 100644 --- a/src/services/PollingBackend.js +++ b/src/services/PollingBackend.js @@ -159,6 +159,8 @@ class PollingBackend { } else if (e.response.status === 403) { this._authority.emit('error', ERROR_TYPE.CONNECTION_FAILED, {}) } else { + this.increaseRefetchTimer() + this._authority.emit('error', ERROR_TYPE.CONNECTION_FAILED, {retry: false}) console.error('Failed to fetch steps due to other reason', e) } }) |