From 1c210693a6a47e7296bd577ac64666377ca931e5 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 27 Jan 2023 12:32:47 +0800 Subject: [PATCH] =?UTF-8?q?:recycle:=20=E9=87=8D=E6=9E=84=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E4=BB=BB=E5=8A=A1=E5=AE=9E=E7=8E=B0=20Fix=20https://g?= =?UTF-8?q?ithub.com/siyuan-note/siyuan/issues/7171?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/job/cron.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/job/cron.go b/kernel/job/cron.go index 1dff03794..1b7ce5dde 100644 --- a/kernel/job/cron.go +++ b/kernel/job/cron.go @@ -47,7 +47,7 @@ func StartCron() { func every(interval time.Duration, f func()) { for { func() { - logging.Recover() + defer logging.Recover() f() }()