Skip to content

Commit

Permalink
Catch the error on heartbeat update
Browse files Browse the repository at this point in the history
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
  • Loading branch information
rullzer authored and npmbuildbot-nextcloud[bot] committed Dec 23, 2020
1 parent e97a0c1 commit 72c5356
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/user_status/js/user-status-menu.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/user_status/js/user-status-menu.js.map

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion apps/user_status/src/UserStatus.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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')
},
},
Expand Down

0 comments on commit 72c5356

Please sign in to comment.