mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-11 00:54:28 +05:00
fix asyncio.lock
This commit is contained in:
@@ -50,6 +50,10 @@ class PriorityLock(asyncio.Lock):
|
||||
finally:
|
||||
self.release()
|
||||
|
||||
@property
|
||||
def _loop(self):
|
||||
return asyncio.get_event_loop()
|
||||
|
||||
async def acquire(self, priority=0) -> bool:
|
||||
"""Acquire a lock.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user