From d6e3048b71e5ca50df37303f05330f6f65e41bcb Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Wed, 31 Oct 2018 16:34:08 -0400 Subject: [PATCH] Don't log if connection_lost is called before connection_made Just propagate the error. --- uvloop/handles/basetransport.pyx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/uvloop/handles/basetransport.pyx b/uvloop/handles/basetransport.pyx index 1bdd2c9..8682ef1 100644 --- a/uvloop/handles/basetransport.pyx +++ b/uvloop/handles/basetransport.pyx @@ -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