mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #24824 from nextcloud/enh/catch_heartbeat_error
Catch the error on heartbeat update
This commit is contained in:
commit
d32af39c25
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
|
|
@ -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 a new issue