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 backportbot[bot] committed Dec 23, 2020
1 parent e97a0c1 commit 9416a24
Showing 1 changed file with 6 additions and 1 deletion.
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 9416a24

Please sign in to comment.