Skip to content

Commit

Permalink
fixed race condition (whoops)
Browse files Browse the repository at this point in the history
  • Loading branch information
NullDev committed Jan 18, 2024
1 parent 1f0928c commit 13e26fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/messageCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const handleQueue = async function(){
if (QUEUE.length > 0){
const message = QUEUE.shift();
await countingService(message);
handleQueue();
await handleQueue();
}
};

Expand Down

0 comments on commit 13e26fc

Please sign in to comment.