Skip to content

Commit d6e3048

Browse files
committed
Don't log if connection_lost is called before connection_made
Just propagate the error.
1 parent 644cff3 commit d6e3048

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

uvloop/handles/basetransport.pyx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,6 @@ cdef class UVBaseTransport(UVSocketHandle):
141141

142142
cdef _call_connection_lost(self, exc):
143143
if self._waiter is not None:
144-
# This shouldn't ever happen!
145-
self._loop.call_exception_handler({
146-
'message': 'waiter is not None in {}._call_connection_lost'.
147-
format(self.__class__.__name__)
148-
})
149144
if not self._waiter.done():
150145
self._waiter.set_exception(exc)
151146
self._waiter = None

0 commit comments

Comments
 (0)