Fixing CI
This commit is contained in:
parent
9b2914cc63
commit
756a495ac6
@ -45,7 +45,8 @@ const roomManager: IRoomManagerServer = {
|
|||||||
let room: GameRoom | null = null;
|
let room: GameRoom | null = null;
|
||||||
let user: User | null = null;
|
let user: User | null = null;
|
||||||
|
|
||||||
call.on("data", async (message: PusherToBackMessage) => {
|
call.on("data", (message: PusherToBackMessage) => {
|
||||||
|
(async () => {
|
||||||
try {
|
try {
|
||||||
if (room === null || user === null) {
|
if (room === null || user === null) {
|
||||||
if (message.hasJoinroommessage()) {
|
if (message.hasJoinroommessage()) {
|
||||||
@ -127,6 +128,7 @@ const roomManager: IRoomManagerServer = {
|
|||||||
emitError(call, e);
|
emitError(call, e);
|
||||||
call.end();
|
call.end();
|
||||||
}
|
}
|
||||||
|
})().catch(e => console.error(e));
|
||||||
});
|
});
|
||||||
|
|
||||||
call.on("end", () => {
|
call.on("end", () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user