diff --git a/mitmproxy/tools/console/master.py b/mitmproxy/tools/console/master.py index ab1d84142..940f379fd 100644 --- a/mitmproxy/tools/console/master.py +++ b/mitmproxy/tools/console/master.py @@ -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()