diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2014-11-15 12:31:13 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2014-11-15 12:31:13 +1300 |
commit | c56e7a90d886d7169a75246de062f0f90028ae6c (patch) | |
tree | 65ff9507c4182b8f43f1ca9c7e473cf90d35ad0c /netlib | |
parent | 60584387ff860befe38ada5ec9d35f3c529d0238 (diff) | |
download | mitmproxy-c56e7a90d886d7169a75246de062f0f90028ae6c.tar.gz mitmproxy-c56e7a90d886d7169a75246de062f0f90028ae6c.tar.bz2 mitmproxy-c56e7a90d886d7169a75246de062f0f90028ae6c.zip |
Fix tracebacks in connection finish
Diffstat (limited to 'netlib')
-rw-r--r-- | netlib/tcp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netlib/tcp.py b/netlib/tcp.py index 6b7540aa..1c3bf230 100644 --- a/netlib/tcp.py +++ b/netlib/tcp.py @@ -255,10 +255,10 @@ class _Connection(object): if not getattr(self.wfile, "closed", False): try: self.wfile.flush() + self.wfile.close() except NetLibDisconnect: pass - self.wfile.close() self.rfile.close() else: try: |