connector

This commit is contained in:
4tochka 2019-05-04 11:22:44 +04:00
parent da8019ef1f
commit d7971af08a

View File

@ -278,8 +278,11 @@ class Connector:
async def get_next_block(self):
if self.active:
if not self.get_next_block_mutex.done():
await self.get_next_block_mutex
while True:
if not self.get_next_block_mutex.done():
await self.get_next_block_mutex
continue
break
try:
self.get_next_block_mutex = asyncio.Future()