This commit is contained in:
Elias Almqvist 2021-11-30 09:50:37 +01:00 committed by GitHub
commit baa318d2c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1656,7 +1656,8 @@ class Speedtest(object):
while _is_alive(thread):
thread.join(timeout=0.001)
in_flight['threads'] -= 1
finished.append(thread.result)
if type(thread.result) in (int, float):
finished.append(thread.result)
callback(thread.i, request_count, end=True)
q = Queue(threads or self.config['threads']['upload'])