mirror of
https://github.com/idrainformatica/PecFlow.git
synced 2026-06-17 05:05:44 +02:00
v1
This commit is contained in:
@@ -263,7 +263,8 @@ class IMAPConnection:
|
||||
server_push = []
|
||||
|
||||
# Termina IDLE
|
||||
await client.idle_done()
|
||||
# Nota: in aioimaplib >= 2.0.0 idle_done() e' sincrona (non coroutine)
|
||||
client.idle_done()
|
||||
|
||||
# Controlla se ci sono nuovi messaggi (EXISTS)
|
||||
has_new = any(
|
||||
@@ -300,7 +301,7 @@ class IMAPConnection:
|
||||
|
||||
except asyncio.CancelledError:
|
||||
try:
|
||||
await client.idle_done()
|
||||
client.idle_done()
|
||||
except Exception:
|
||||
pass
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user