From ea9f339a227f5f7c58afe208cefba2c2ecf6658b Mon Sep 17 00:00:00 2001 From: Sidd Date: Mon, 7 Mar 2022 22:02:03 -0800 Subject: [PATCH] refactor: don't block when polling ircCommandQueue (#544) --- chat/src/main/java/com/github/twitch4j/chat/TwitchChat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat/src/main/java/com/github/twitch4j/chat/TwitchChat.java b/chat/src/main/java/com/github/twitch4j/chat/TwitchChat.java index b4461a03e..5ebb40e63 100644 --- a/chat/src/main/java/com/github/twitch4j/chat/TwitchChat.java +++ b/chat/src/main/java/com/github/twitch4j/chat/TwitchChat.java @@ -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);