mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-01 18:27:18 +00:00
explain why we wait before deletion in spawn_external_viewer
This commit is contained in:
parent
b74a2f4e45
commit
8df5e31a19
1 changed files with 1 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ class ConsoleMaster(master.Master):
|
|||
signals.status_message.send(
|
||||
message="Can't start external viewer: %s" % " ".join(c)
|
||||
)
|
||||
# small delay before removing the file
|
||||
# add a small delay before deletion so that the file is not removed before being loaded by the viewer
|
||||
t = threading.Timer(1.0, os.unlink, args=[name])
|
||||
t.start()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue