aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/controller.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2011-03-06 16:54:49 +1300
committerAldo Cortesi <aldo@nullcube.com>2011-03-06 16:54:49 +1300
commitec00b5a66e44454fce3d347203ad85ce4d8feaf6 (patch)
tree8ccaf7656647fafb1b447463b0d5c1feef716690 /libmproxy/controller.py
parente794cbc0d8932d8dfaf3676fdd3af108e0e9edfd (diff)
downloadmitmproxy-ec00b5a66e44454fce3d347203ad85ce4d8feaf6.tar.gz
mitmproxy-ec00b5a66e44454fce3d347203ad85ce4d8feaf6.tar.bz2
mitmproxy-ec00b5a66e44454fce3d347203ad85ce4d8feaf6.zip
Make mitmdump exit after client replay is complete by default.
Add an option --keepserving to make it keep serving after replay.
Diffstat (limited to 'libmproxy/controller.py')
-rw-r--r--libmproxy/controller.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmproxy/controller.py b/libmproxy/controller.py
index 468092b7..82e934c4 100644
--- a/libmproxy/controller.py
+++ b/libmproxy/controller.py
@@ -88,6 +88,7 @@ class Master:
def shutdown(self):
if not self._shutdown:
self._shutdown = True
- self.server.shutdown()
+ if self.server:
+ self.server.shutdown()