mirror of https://github.com/MagicStack/uvloop.git
Don't log if connection_lost is called before connection_made
Just propagate the error.
This commit is contained in:
parent
644cff3870
commit
d6e3048b71
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue