lock.py: fix bug with _awt

pull/12/head
Peter Hinch 2019-12-02 18:22:14 +00:00
rodzic 7bc6f92dd7
commit bb534a7eb8
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -46,7 +46,7 @@ class Lock(uasyncio.Primitive):
raise RuntimeError("Lock is not acquired.")
self._locked = False
# Lock becomes available. If task(s) are waiting on it save task which will
self.awt = self.run_next() # get lock and schedule that task
self._awt = self.run_next() # get lock and schedule that task
async def __aexit__(self, *args):
return self.release()