Commit 4c95445a authored by 神楽坂玲奈's avatar 神楽坂玲奈

修复匹配失败后时间继续跑

parent 62cb412a
......@@ -599,6 +599,12 @@ export class YGOProComponent implements OnInit, OnDestroy {
this.join(data['password'], {address: data['address'], port: data['port']});
}, (error) => {
alert(`匹配失败\n${error}`);
this.matching = matching = undefined;
this.matching_arena = matching_arena = undefined;
if (this.match_interval) {
clearInterval(this.match_interval);
this.match_interval = undefined;
}
}, () => {
this.matching = matching = undefined;
this.matching_arena = matching_arena = undefined;
......
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