bamthomas / aioimaplib

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

Store imap client task reference #109

Open jbouwh opened 3 months ago

jbouwh commented 3 months 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 3 months ago

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