Fix for --time-limit producing empty --har file

This commit is contained in:
Miroslav Štampar 2026-11-12 16:25:24 +01:00
parent ca698bb7ec
commit d646b00ceb
2 changed files with 4 additions and 1 deletions

View file

@ -648,6 +648,9 @@ def main():
except OSError:
pass
# Note: --time-limit must not interrupt the final cleanup (e.g. session flush or HAR file writing)
conf.timeLimit = None
if conf.get("hashDB"):
conf.hashDB.flush()
conf.hashDB.close() # NOTE: because of PyPy