summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/unix_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-15 12:23:36 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-01-15 12:23:36 (GMT)
commit7d78d0d91c1765cfdf6aa990d008c8a093f3ce4a (patch)
tree268cb7401048d627c38ea7cb5294ed36e9ebdd31 /Lib/asyncio/unix_events.py
parentfe47e66792dd32420c705796bc7e3445b0fc6292 (diff)
parent02392c92820d8633ccf906e8c3d0fdb2fe16e5ba (diff)
downloadcpython-7d78d0d91c1765cfdf6aa990d008c8a093f3ce4a.zip
cpython-7d78d0d91c1765cfdf6aa990d008c8a093f3ce4a.tar.gz
cpython-7d78d0d91c1765cfdf6aa990d008c8a093f3ce4a.tar.bz2
Merge 3.4 (asyncio)
Diffstat (limited to 'Lib/asyncio/unix_events.py')
-rw-r--r--Lib/asyncio/unix_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py
index 14b4843..9f4005c 100644
--- a/Lib/asyncio/unix_events.py
+++ b/Lib/asyncio/unix_events.py
@@ -516,7 +516,7 @@ class _UnixWritePipeTransport(transports._FlowControlMixin,
self._loop.call_soon(self._call_connection_lost, None)
def close(self):
- if not self._closing:
+ if self._pipe is not None and not self._closing:
# write_eof is all what we needed to close the write pipe
self.write_eof()