We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 12f109b + 71c02ca commit 37c0ea7Copy full SHA for 37c0ea7
archivebox/misc/logging_util.py
@@ -152,7 +152,13 @@ def end(self):
152
except BaseException: # lgtm [py/catch-base-exception]
153
pass
154
self.p.terminate()
155
- self.p.join()
+ time.sleep(0.1)
156
+ # sometimes the timer doesn't terminate properly, then blocks at the join until
157
+ # the full time has elapsed. sending a kill tries to avoid that.
158
+ try:
159
+ self.p.kill()
160
+ except Exception:
161
+ pass
162
163
164
# clear whole terminal line
0 commit comments