diff --git a/back/src/Services/SocketManager.ts b/back/src/Services/SocketManager.ts index 2d3dd2e3..8aa7f6a4 100644 --- a/back/src/Services/SocketManager.ts +++ b/back/src/Services/SocketManager.ts @@ -287,7 +287,9 @@ export class SocketManager { this.onClientLeave(thing, newZone, listener), (emoteEventMessage: EmoteEventMessage, listener: ZoneSocket) => this.onEmote(emoteEventMessage, listener), - (groupId: number, listener: ZoneSocket) => this.onLockGroup(groupId, listener, roomPromise), + (groupId: number, listener: ZoneSocket) => { + void this.onLockGroup(groupId, listener, roomPromise); + }, (playerDetailsUpdatedMessage: PlayerDetailsUpdatedMessage, listener: ZoneSocket) => this.onPlayerDetailsUpdated(playerDetailsUpdatedMessage, listener) ) @@ -391,7 +393,11 @@ export class SocketManager { emitZoneMessage(subMessage, client); } - private async onLockGroup(groupId: number, client: ZoneSocket, roomPromise: PromiseLike | undefined) { + private async onLockGroup( + groupId: number, + client: ZoneSocket, + roomPromise: PromiseLike | undefined + ): Promise { if (!roomPromise) { return; }