prosgarz35 commented on PR #3198:
URL: https://github.com/apache/james-project/pull/3198#issuecomment-5825950681

       Pushed a follow-up commit fixing the interface contract declaration and 
registration ordering:
   
       1. **Restored `SelectedMailbox.unregisterIdle()` Declaration**:
          - Re-added the base `void unregisterIdle();` method declaration in 
`SelectedMailbox` so that `default void unregisterIdle(ReactiveEventListener 
listener)` correctly delegates to it for backward-compatible fallback
     implementations.
       2. **Pre-Registration Reference Publishing**:
          - Reordered listener setup in `IdleProcessor` so that 
`idleListenerRef.set(idleListener)` is executed strictly *before* invoking 
`selectedMailbox.registerIdle(idleListener)`.
          - Ensures that if `registerIdle(...)` fails or throws an exception, 
`onErrorResume` receives the non-null listener instance and safely removes it 
via `compareAndSet(listener, null)`.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to