bamthomas / aioimaplib

Python asyncio IMAP4rev1 client library
GNU General Public License v3.0
133 stars 59 forks source link

Store imap client task reference #109

Open jbouwh opened 1 month ago

jbouwh commented 1 month ago

When the imap client task connection fails and raises we need to have a reference in the base class to make sure the task is not destroy before it is finished.

The intention is to solve:

https://github.com/home-assistant/core/issues/122809

The PR will store a task reference that is kept until a new client connection is set up, and the old reference is overwritten.

jbouwh commented 1 month ago

@bamthomas Can you have a look at the failing CI tests?