Merge pull request #215 from aspacca/asyncio-lock-back-in-tautulli
the order matters
This commit is contained in:
commit
867fe0e525
|
@ -20,8 +20,11 @@ nest_asyncio.apply()
|
|||
rooms = dict()
|
||||
global_bot = None
|
||||
|
||||
send_entry_lock = asyncio.Lock()
|
||||
|
||||
|
||||
async def send_entry(blob, content_type, fmt_params, rooms):
|
||||
async with send_entry_lock:
|
||||
for room_id in rooms:
|
||||
room = MatrixRoom(room_id=room_id, own_user_id=os.getenv("BOT_OWNERS"),
|
||||
encrypted=rooms[room_id])
|
||||
|
|
Loading…
Reference in New Issue