AyatanaIndicators / ayatana-webmail

Webmail notifications and actions for any desktop
GNU General Public License v3.0
8 stars 4 forks source link

Fix blocked idler on calling the `stop` method #27

Closed IngoMeyer441 closed 2 years ago

IngoMeyer441 commented 2 years ago

Calling the idler stop method sends a signal to the internally used thread to finish its work. However, this thread is already blocked by the IMAP IDLE mode and only released after reaching the IDLE timeout. Thus, this commit sends another IMAP command (a simple NOOP) to abort the IDLE mode so the thread can be released without any delay.

This commit fixes GitHub issue #26.

tari01 commented 2 years ago

@IngoMeyer441 Thank you for working on this!