[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;
|
const apiNum: number = conn === key ? 100 : 200;
|
||||||
data = [(connData.state ?? EGameState.Ready) + apiNum];
|
data = [(connData.state ?? EGameState.Ready) + apiNum];
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (state) {
|
||||||
|
target = <WsConnection<ServiceType>[]>this.conns.filter((filterConn) => filterConn === key);
|
||||||
|
data = [state];
|
||||||
} else {
|
} else {
|
||||||
target = <WsConnection<ServiceType>[]>this.conns.filter((filterConn) => filterConn === key);
|
target = <WsConnection<ServiceType>[]>this.conns.filter((filterConn) => filterConn === key);
|
||||||
data = [connData.state];
|
data = [connData.state];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (needData) {
|
if (needData) {
|
||||||
data.push(connData.answer);
|
data.push(connData.answer);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user