Catch the error on heartbeat update

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
This commit is contained in:
Roeland Jago Douma 2020-12-23 10:35:03 +01:00 committed by npmbuildbot-nextcloud[bot]
parent e97a0c1307
commit 72c5356a55
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')
},
},