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

fix watchdog & readyState sequence bug

上级 3d5a8be1
......@@ -97,14 +97,14 @@ class PuppetWeb extends Puppet {
throw new Error('do not call quit again when quiting')
}
this.readyState('disconnecting')
// this.clearWatchDogTimer()
// POISON must feed before readyState set to "disconnecting"
this.emit('watchdog', {
data: 'PuppetWeb.quit()',
type: 'POISON'
})
this.readyState('disconnecting')
return co.call(this, function* () {
if (this.bridge) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册