aboutsummaryrefslogtreecommitdiffstats
path: root/netlib
diff options
context:
space:
mode:
Diffstat (limited to 'netlib')
-rw-r--r--netlib/tcp.py2
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: