Skip to content

Commit d60be44

Browse files
committed
Another clarification
1 parent 5c44397 commit d60be44

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

uvloop/handles/handle.pyx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,9 @@ cdef class UVSocketHandle(UVHandle):
282282
# * detach() call will reset FD for the Python socket
283283
# object, which means that it won't be closed 2nd time
284284
# when the socket object is GCed.
285+
#
286+
# No need to call `socket_dec_io_ref()`, as
287+
# `socket.detach()` ignores `socket._io_refs`.
285288
self._fileobj.detach()
286289
else:
287290
try:

0 commit comments

Comments
 (0)