[fix] bug
This commit is contained in:
parent
7f491ebddf
commit
4d9134d381
@ -88,10 +88,15 @@ export default class Room {
|
||||
const apiNum: number = conn === key ? 100 : 200;
|
||||
data = [(connData.state ?? EGameState.Ready) + apiNum];
|
||||
}
|
||||
} else {
|
||||
if (state) {
|
||||
target = <WsConnection<ServiceType>[]>this.conns.filter((filterConn) => filterConn === key);
|
||||
data = [state];
|
||||
} else {
|
||||
target = <WsConnection<ServiceType>[]>this.conns.filter((filterConn) => filterConn === key);
|
||||
data = [connData.state];
|
||||
}
|
||||
}
|
||||
if (needData) {
|
||||
data.push(connData.answer);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user