Skip to content

Commit

Permalink
adjust count logic
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Dec 31, 2024
1 parent 4c758df commit 133fd84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1116,13 +1116,13 @@ export class Room {
redisCount('aiVoice');
success += 1;
}
count += 1;
} catch (e) {
// Log errors, but continue iterating
console.log(e);
}
count += 1;
}
if (workerIndex === 0) {
if (count === items.length) {
const end = Date.now();
this.addChatMessage(undefined, {
id: '',
Expand Down

0 comments on commit 133fd84

Please sign in to comment.