Fixing CI

This commit is contained in:
David Négrier 2021-07-22 17:14:15 +02:00
parent 9b2914cc63
commit 756a495ac6

View File

@ -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", () => {