diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2011-03-06 16:54:49 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2011-03-06 16:54:49 +1300 |
commit | ec00b5a66e44454fce3d347203ad85ce4d8feaf6 (patch) | |
tree | 8ccaf7656647fafb1b447463b0d5c1feef716690 /libmproxy/controller.py | |
parent | e794cbc0d8932d8dfaf3676fdd3af108e0e9edfd (diff) | |
download | mitmproxy-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.py | 3 |
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() |