File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -1617,15 +1617,12 @@ cdef class Loop:
16171617 call_connection_made = False )
16181618
16191619 # Transfer buffered data from the old protocol to the new one.
1620- stream_buff = None
1621- if hasattr (protocol, ' _stream_reader' ):
1622- stream_reader = protocol._stream_reader
1623- if stream_reader is not None :
1624- stream_buff = getattr (stream_reader, ' _buffer' , None )
1625-
1626- if stream_buff is not None :
1627- ssl_protocol._incoming.write(stream_buff)
1628- stream_buff.clear()
1620+ stream_reader = getattr (protocol, ' _stream_reader' , None )
1621+ if stream_reader is not None :
1622+ stream_buff = getattr (stream_reader, ' _buffer' , None )
1623+ if stream_buff is not None :
1624+ ssl_protocol._incoming.write(stream_buff)
1625+ stream_buff.clear()
16291626
16301627 # Pause early so that "ssl_protocol.data_received()" doesn't
16311628 # have a chance to get called before "ssl_protocol.connection_made()".
You can’t perform that action at this time.
0 commit comments