We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44a1694 commit ce99a7fCopy full SHA for ce99a7f
store/src/main/java/org/apache/rocketmq/store/ha/DefaultHAService.java
@@ -342,7 +342,7 @@ public void run() {
342
343
if (selected != null) {
344
for (SelectionKey k : selected) {
345
- if ((k.readyOps() & SelectionKey.OP_ACCEPT) != 0) {
+ if (k.isAcceptable()) {
346
SocketChannel sc = ((ServerSocketChannel) k.channel()).accept();
347
348
if (sc != null) {
0 commit comments