scanner / asimap

Pure python based IMAP server with a MH based file store
BSD 3-Clause "New" or "Revised" License
43 stars 7 forks source link

Task was destroyed but it is pending! #301

Closed scanner closed 3 months ago

scanner commented 3 months ago
Task was destroyed but it is pending!
task: <Task pending name="IMAPSubprocessInterface(scanner@apricot.com,('192.184.165.19', 62473))" coro=<patch_asyncio.<locals>._sentry_task_factory.<locals>._coro_creating_hub_and_span() running at /venv/lib/python3.12/site-packages/sentry_sdk/integrations/asyncio.py:53> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[IMAPSubprocessInterface.msgs_to_client_done()]>

We are not cancelling the IMAPSubprocessInterface wait_task when we want to close the connection and exit.