diff --git a/backend/utils/ecast-shard-client.js b/backend/utils/ecast-shard-client.js index 9f8ab60..908e518 100644 --- a/backend/utils/ecast-shard-client.js +++ b/backend/utils/ecast-shard-client.js @@ -378,6 +378,7 @@ class EcastShardClient { reason: 'room_closed', finalPlayerCount: this.playerCount, }); + activeShards.delete(`${this.sessionId}-${this.gameId}`); return false; } @@ -397,6 +398,7 @@ class EcastShardClient { reason: 'connection_failed', finalPlayerCount: this.playerCount, }); + activeShards.delete(`${this.sessionId}-${this.gameId}`); return false; } finally { this.reconnecting = false;