Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-12-23 12:35:03 +0300
committernpmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>2020-12-23 12:47:09 +0300
commitea6a9594ca9c736d3dfe664d23753363ab804e1d (patch)
tree3300d490d04157b5e2bb1c09b9ed82b3b8ff7347 /apps/user_status/src
parent61791962f2366c40a94537989c66f338ebb58a38 (diff)
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.vue7
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')
},
},