Skip to content

Commit

Permalink
refactor: don't block when polling ircCommandQueue (#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
iProdigy committed Mar 8, 2022
1 parent 2d376b9 commit ea9f339
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -355,7 +355,7 @@ public TwitchChat(EventManager eventManager, CredentialManager credentialManager
String command = null;
try {
// Send the command
command = ircCommandQueue.poll(this.chatQueueTimeout, TimeUnit.MILLISECONDS);
command = ircCommandQueue.poll();
if (command == null) break;
sendTextToWebSocket(command, false);

Expand Down

0 comments on commit ea9f339

Please sign in to comment.