Merge pull request #321 from linkchecker/wait-for-threads-to-exit

Wait for threads to exit after stopping them
This commit is contained in:
Marius Gedminas 2019-10-21 20:50:04 +03:00 committed by GitHub
commit bbb90eba81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):