Commit 0ce3fb84 authored by 范雪寒's avatar 范雪寒

test:

parent c4009ceb
...@@ -93,10 +93,11 @@ export class NetworkHelper { ...@@ -93,10 +93,11 @@ export class NetworkHelper {
this.log("initListener"); this.log("initListener");
MGOBE.Listener.init(gameInfo, config, (event) => { MGOBE.Listener.init(gameInfo, config, async (event) => {
this.log(JSON.stringify(event)); this.log(JSON.stringify(event));
if (event.code !== 0) { if (event.code !== 0) {
this.log("初始化失败: " + event.code); this.log("初始化失败: " + event.code);
await asyncDelay(2);
reject(); reject();
return; return;
} }
...@@ -104,6 +105,8 @@ export class NetworkHelper { ...@@ -104,6 +105,8 @@ export class NetworkHelper {
this.log("初始化成功"); this.log("初始化成功");
resolve(null); resolve(null);
}); });
this.log("initListener2");
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment