Merge pull request #24826 from nextcloud/backport/24824/stable20
[stable20] Catch the error on heartbeat update
This commit is contained in:
commit
afbc2d5cd3
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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')
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue