Skip to content

Commit 9416a24

Browse files
rullzerbackportbot[bot]
authored andcommitted
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>
1 parent e97a0c1 commit 9416a24

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

apps/user_status/src/UserStatus.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,12 @@ export default {
155155
* @private
156156
*/
157157
async _backgroundHeartbeat() {
158-
await sendHeartbeat(this.isAway)
158+
try {
159+
await sendHeartbeat(this.isAway)
160+
} catch (error) {
161+
console.debug('Failed sending heartbeat, got: ' + error.response.status)
162+
return
163+
}
159164
await this.$store.dispatch('reFetchStatusFromServer')
160165
},
161166
},

0 commit comments

Comments
 (0)