Skip to content

Commit 5ad42b3

Browse files
committed
Clean NIO loop condition
1 parent 97fd5cf commit 5ad42b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/rabbitmq/client/impl/nio/NioLoop.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void run() {
6767
boolean writeRegistered = false;
6868

6969
try {
70-
while (true && !Thread.currentThread().isInterrupted()) {
70+
while (!Thread.currentThread().isInterrupted()) {
7171

7272
for (SelectionKey selectionKey : selector.keys()) {
7373
SocketChannelFrameHandlerState state = (SocketChannelFrameHandlerState) selectionKey.attachment();

0 commit comments

Comments
 (0)