mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
policyd: close redis connection after counters reset.
This commit is contained in:
@@ -209,6 +209,8 @@ async def reset_counters():
|
||||
for mb in mboxes:
|
||||
rclient.hset(
|
||||
constants.REDIS_HASHNAME, mb.full_address, mb.message_limit)
|
||||
rclient.close()
|
||||
await rclient.wait_closed()
|
||||
# reschedule
|
||||
asyncio.ensure_future(run_at(get_next_execution_dt(), reset_counters))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user