Don't log if connection_lost is called before connection_made

Just propagate the error.
This commit is contained in:
Yury Selivanov 2018-10-31 16:34:08 -04:00
parent 644cff3870
commit d6e3048b71
1 changed files with 0 additions and 5 deletions

View File

@ -141,11 +141,6 @@ cdef class UVBaseTransport(UVSocketHandle):
cdef _call_connection_lost(self, exc):
if self._waiter is not None:
# This shouldn't ever happen!
self._loop.call_exception_handler({
'message': 'waiter is not None in {}._call_connection_lost'.
format(self.__class__.__name__)
})
if not self._waiter.done():
self._waiter.set_exception(exc)
self._waiter = None