connector

This commit is contained in:
4tochka 2019-05-04 11:26:16 +04:00
parent d7971af08a
commit 37f8ad6e04

View File

@ -277,7 +277,7 @@ class Connector:
self.log.error("watchdog error %s " % err)
async def get_next_block(self):
if self.active:
if self.active and self.active_block.done():
while True:
if not self.get_next_block_mutex.done():
await self.get_next_block_mutex