mirror of https://github.com/MagicStack/uvloop.git
stream: Return early in stream._exec_write if the handle is closed
This commit is contained in:
parent
0c099840ba
commit
83ae4ef921
|
@ -373,6 +373,11 @@ cdef class UVStream(UVBaseTransport):
|
|||
int err
|
||||
_StreamWriteContext ctx
|
||||
|
||||
if self._closed:
|
||||
# If the handle is closed, just return, it's too
|
||||
# late to do anything.
|
||||
return
|
||||
|
||||
ctx = _StreamWriteContext.new(self, self._buffer)
|
||||
|
||||
if ctx.py_bufs_sml_inuse:
|
||||
|
|
Loading…
Reference in New Issue