Arsnael commented on code in PR #2525:
URL: https://github.com/apache/james-project/pull/2525#discussion_r1861434349


##########
server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/NettyImapSession.java:
##########
@@ -113,6 +115,21 @@ public void executeSafely(Runnable runnable) {
         });
     }
 
+    @Override
+    public ImapProcessor.Responder threadSafe(ImapProcessor.Responder 
responder) {
+        return new ImapProcessor.Responder() {
+            @Override
+            public void respond(ImapResponseMessage message) {
+                channel.eventLoop().execute(() -> responder.respond(message));
+            }
+
+            @Override
+            public void flush() {
+            channel.eventLoop().execute(responder::flush);

Review Comment:
   ```suggestion
                   channel.eventLoop().execute(responder::flush);
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org
For additional commands, e-mail: notifications-h...@james.apache.org

Reply via email to