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

fix(race condition): fire login event before bridge inited (#772)

上级 5d87a6a3
......@@ -243,6 +243,7 @@ async function onServerLogin(this: PuppetWeb, data, attempt = 0): Promise<void>
// issue #772
// if `login` event fired before this.bridge inited, we delay the event for 1 second.
if (!this.bridge) {
log.verbose('PuppetWebEvent', 'onServerLogin() fired before bridge inited. delay for 1 second.')
setTimeout(() => {
onServerLogin.apply(this, arguments)
}, 1000)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册