提交 15144c16 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

watchdog timer should not block process exit

上级 b92517de
......@@ -83,6 +83,7 @@ function setWatchDogTimer(timeout, feed) {
log.silly('PuppetWebWatchdog', 'setWatchDogTimer(%d, %s)', timeout, feed)
this.watchDogTimer = setTimeout(watchDogReset.bind(this, timeout, feed), timeout)
this.watchDogTimer.unref()
this.watchDogTimerTime = Date.now() + timeout
// block quit, force to use quit() // this.watchDogTimer.unref() // dont block quit
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册