Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.

Commit a49993e

Browse files
author
icymind
committed
handle error in setInterval
1 parent f261833 commit a49993e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderer/components/Manage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ export default {
381381
382382
setInterval(async () => {
383383
// 每15分钟检测一遍状态, 目前和虚拟机直接只要一个ssh连接, 所以暂时不能并发.
384-
await this.refreshInfos()
384+
await this.refreshInfos().catch(console.log)
385385
}, 900000)
386386
387387
$(document).on('click', 'a[href^="http"]', function (event) {

0 commit comments

Comments
 (0)