mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-10 17:40:58 +00:00
Merge pull request #321 from linkchecker/wait-for-threads-to-exit
Wait for threads to exit after stopping them
This commit is contained in:
commit
bbb90eba81
1 changed files with 2 additions and 0 deletions
|
|
@ -199,6 +199,8 @@ class Aggregate (object):
|
|||
self.cancel()
|
||||
for t in self.threads:
|
||||
t.stop()
|
||||
for t in self.threads:
|
||||
t.join(timeout=1.0)
|
||||
|
||||
@synchronized(_threads_lock)
|
||||
def is_finished (self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue