aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmproxy/proxy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmproxy/proxy.py b/libmproxy/proxy.py
index df810da5..ae5cd7d3 100644
--- a/libmproxy/proxy.py
+++ b/libmproxy/proxy.py
@@ -85,7 +85,7 @@ class ServerConnection(tcp.TCPClient):
if self.connection:
try:
self.wfile.flush()
- except IOError: # pragma: no cover
+ except IOError, tcp.NetLibDisconnect: # pragma: no cover
pass
try:
self.connection.close()