mail-api icon indicating copy to clipboard operation
mail-api copied to clipboard

EventQueue should be terminated only by its owner

Open cigaly opened this issue 1 year ago • 1 comments

Both Service.notifyConnectionListeners and Folder.notifyConnectionListeners are calling EventQueue.terminateQueue() if type is ConnectionEvent.CLOSED . However, if mail.event.scope is set to 'application' or 'session' this can cause to some later events to be lost without being processed.

This problem should be fixed to allow queue termination only when object that is processing event owns EventQueue.

cigaly avatar Aug 09 '24 09:08 cigaly

Thanks for creating this issue. I'm going to use this to write myself a reminder that there are multiple tickets to be created and prioritized around EventQueue.

jmehrens avatar Aug 13 '24 02:08 jmehrens