Merge pull request #24826 from nextcloud/backport/24824/stable20

[stable20] Catch the error on heartbeat update
This commit is contained in:
Roeland Jago Douma 2020-12-28 10:47:29 +01:00 committed by GitHub
commit afbc2d5cd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -155,7 +155,12 @@ export default {
* @private
*/
async _backgroundHeartbeat() {
await sendHeartbeat(this.isAway)
try {
await sendHeartbeat(this.isAway)
} catch (error) {
console.debug('Failed sending heartbeat, got: ' + error.response.status)
return
}
await this.$store.dispatch('reFetchStatusFromServer')
},
},