Skip to content

a bug : self.queue.get() run twice #15

@xieyinpeng

Description

@xieyinpeng

a bug

futures = {executor.submit(self.check_path, self.queue.get()): self.queue.get() for _ in range(self.queue.qsize())}

change to:

        #futures = {executor.submit(self.check_path, self.queue.get()): self.queue.get() for _ in range(self.queue.qsize())}
        futures = {}
        for _ in range(self.queue.qsize()):
            subpath = self.queue.get()  # 先取出一个子域名
            future = executor.submit(self.check_path, subpath)  # 提交任务
            futures[future] = subpath  # 将任务和子域名存入字典

where: admin_panel subdirectory subdomain

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions