mirror of
https://github.com/andvikt/mega_hacs.git
synced 2026-11-02 19:18:44 +05:00
fix asyncio.lock
This commit is contained in:
1 parent
ce2969c1e7
commit
2463b270e5
1 file changed
+4
@@ -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