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>
This commit is contained in:
parent
61791962f2
commit
ea6a9594ca
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -155,7 +155,12 @@ export default {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
async _backgroundHeartbeat() {
|
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')
|
await this.$store.dispatch('reFetchStatusFromServer')
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue