diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-12-23 10:35:03 +0100 |
---|---|---|
committer | npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com> | 2020-12-23 09:47:09 +0000 |
commit | ea6a9594ca9c736d3dfe664d23753363ab804e1d (patch) | |
tree | 3300d490d04157b5e2bb1c09b9ed82b3b8ff7347 /apps/user_status/src | |
parent | 61791962f2366c40a94537989c66f338ebb58a38 (diff) | |
download | nextcloud-server-ea6a9594ca9c736d3dfe664d23753363ab804e1d.tar.gz nextcloud-server-ea6a9594ca9c736d3dfe664d23753363ab804e1d.zip |
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>
Diffstat (limited to 'apps/user_status/src')
-rw-r--r-- | apps/user_status/src/UserStatus.vue | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/user_status/src/UserStatus.vue b/apps/user_status/src/UserStatus.vue index a7c71778fa4..00501274b62 100644 --- a/apps/user_status/src/UserStatus.vue +++ b/apps/user_status/src/UserStatus.vue @@ -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') }, }, |