File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ cdef class UVHandle:
27
27
cdef _dealloc_impl(self )
28
28
cdef _free(self )
29
29
cdef _close(self )
30
- cdef _after_close(self )
31
30
32
31
33
32
cdef class UVSocketHandle(UVHandle):
Original file line number Diff line number Diff line change @@ -217,11 +217,6 @@ cdef class UVHandle:
217
217
Py_INCREF(self )
218
218
uv.uv_close(self ._handle, __uv_close_handle_cb) # void; no errors
219
219
220
- cdef _after_close(self ):
221
- # Can only be called when '._close()' was called by hand
222
- # (i.e. won't be called on UVHandle.__dealloc__).
223
- pass
224
-
225
220
def __repr__ (self ):
226
221
return ' <{} closed={} {:#x}>' .format(
227
222
self .__class__.__name__ ,
@@ -274,9 +269,9 @@ cdef class UVSocketHandle(UVHandle):
274
269
cdef _close(self ):
275
270
if self .__cached_socket is not None :
276
271
(< PseudoSocket> self .__cached_socket)._fd = - 1
272
+
277
273
UVHandle._close(self )
278
274
279
- cdef _after_close(self ):
280
275
try :
281
276
# This code will only run for transports created from
282
277
# Python sockets, i.e. with `loop.create_server(sock=sock)` etc.
@@ -299,7 +294,6 @@ cdef class UVSocketHandle(UVHandle):
299
294
})
300
295
finally :
301
296
self ._fileobj = None
302
- UVHandle._after_close(self )
303
297
304
298
cdef _open(self , int sockfd):
305
299
raise NotImplementedError
@@ -363,7 +357,6 @@ cdef void __uv_close_handle_cb(uv.uv_handle_t* handle) with gil:
363
357
h._loop._debug_handles_closed.update([
364
358
h.__class__ .__name__ ])
365
359
h._free()
366
- h._after_close()
367
360
finally :
368
361
Py_DECREF(h) # Was INCREFed in UVHandle._close
369
362
You can’t perform that action at this time.
0 commit comments