aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/tools/web/master.py
diff options
context:
space:
mode:
Diffstat (limited to 'mitmproxy/tools/web/master.py')
-rw-r--r--mitmproxy/tools/web/master.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mitmproxy/tools/web/master.py b/mitmproxy/tools/web/master.py
index 3967bafe..694ee2f7 100644
--- a/mitmproxy/tools/web/master.py
+++ b/mitmproxy/tools/web/master.py
@@ -12,7 +12,6 @@ from mitmproxy.addons import readfile
from mitmproxy.addons import termlog
from mitmproxy.addons import view
from mitmproxy.addons import termstatus
-from mitmproxy.options import Options # noqa
from mitmproxy.tools.web import app, webaddons, static_viewer
@@ -130,6 +129,10 @@ class WebMaster(master.Master):
except KeyboardInterrupt:
self.shutdown()
+ def shutdown(self):
+ tornado.ioloop.IOLoop.instance().stop()
+ super().shutdown()
+
def open_browser(url: str) -> bool:
"""