fix missing handling of deferred IPs
This commit is contained in:
parent
a71d9c33d7
commit
367329cf8c
1 changed files with 3 additions and 2 deletions
|
@ -297,7 +297,6 @@ async def read_all_ips(filepaths, blocking=False, callback=None):
|
|||
|
||||
async def main(db, filepaths, checks, ipinfo, opts: Options):
|
||||
# ipinfo can be None.
|
||||
from .util import make_pooler
|
||||
from asyncio import Queue, QueueFull, create_task
|
||||
from queue import SimpleQueue
|
||||
|
||||
|
@ -347,8 +346,10 @@ async def main(db, filepaths, checks, ipinfo, opts: Options):
|
|||
await trying
|
||||
#lament("AWAITED trying")
|
||||
|
||||
while not deferred.empty():
|
||||
await locate_me.put(deferred.get())
|
||||
|
||||
#lament("STOPPING locating")
|
||||
#done_locating.set()
|
||||
await locate_me.put(None)
|
||||
|
||||
#lament("AWAIT locating")
|
||||
|
|
Loading…
Reference in a new issue