浏览代码

fix 'this' call

龚成明 2 年之前
父节点
当前提交
37fc2841a0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libs/task.js

+ 1 - 1
libs/task.js

@@ -30,7 +30,7 @@ class Task {
       try {
         await task.onTick()
       } catch (e) {
-        this.logger.error(e)
+        task.logger.error(e)
       }
     }, this.delayTime)
   }