We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2af6b0 commit c10d08fCopy full SHA for c10d08f
uvloop/handles/basetransport.pyx
@@ -126,6 +126,14 @@ cdef class UVBaseTransport(UVSocketHandle):
126
raise RuntimeError(
127
'protocol is not set, cannot call connection_made()')
128
129
+ if self._closing:
130
+ # A connection waiter can be cancelled between
131
+ # 'await loop.create_connection()' and
132
+ # `_schedule_call_connection_made` and
133
+ # the actual `_call_connection_made`.
134
+ self._wakeup_waiter()
135
+ return
136
+
137
_loop_ready_len = self._loop._ready_len
138
139
# Set _protocol_connected to 1 before calling "connection_made":
0 commit comments