This commit is contained in:
Andrey
2021-01-14 22:48:07 +03:00
parent 359c6b99b7
commit 768d46d952
4 changed files with 8 additions and 8 deletions

View File

@@ -268,8 +268,7 @@ class MegaD:
return pty, m
async def scan_ports(self,):
async with self.lck:
for x in range(38):
ret = await self.scan_port(x)
if ret:
yield [x, *ret]
for x in range(38):
ret = await self.scan_port(x)
if ret:
yield [x, *ret]