asyncio: Fix _ProactorWritePipeTransport._pipe_closed()

The "exc" variable was not defined, pass a BrokenPipeError exception instead.
This commit is contained in:
Victor Stinner 2014-02-20 10:33:01 +01:00
parent 8d0230b0f2
commit 6f24d83ac6
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ class _ProactorWritePipeTransport(_ProactorBaseWritePipeTransport):
assert fut is self._read_fut, (fut, self._read_fut)
self._read_fut = None
if self._write_fut is not None:
self._force_close(exc)
self._force_close(BrokenPipeError())
else:
self.close()