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

track bridge lost bug

上级 3fafb1d8
......@@ -177,7 +177,7 @@ function onServerDisconnect(data) {
// caused browser dead and have to be restarted. 2016/6/12
setTimeout(_ => {
if (!this.bridge) {
return // XXX: sometimes this.bridge gone in this timeout. why? what's happend between the last if(!this.bridge) check and the timeout call?
throw new Error('bridge gone after setTimeout? why???') // XXX: sometimes this.bridge gone in this timeout. why? what's happend between the last if(!this.bridge) check and the timeout call?
}
this.bridge.init()
.then(r => log.verbose('PuppetWebEvent', 'onServerDisconnect() bridge re-inited: %s', r))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册