Skip to content

Commit 07af970

Browse files
committed
Use low-level transport._close() methods when waiter fails
1 parent ac90d8b commit 07af970

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

uvloop/loop.pyx

+3-3
Original file line numberDiff line numberDiff line change
@@ -2419,7 +2419,7 @@ cdef class Loop:
24192419
try:
24202420
await waiter
24212421
except Exception:
2422-
transport.close()
2422+
transport._close()
24232423
raise
24242424

24252425
if ssl:
@@ -2553,7 +2553,7 @@ cdef class Loop:
25532553
transp._init_protocol()
25542554
await waiter
25552555
except Exception:
2556-
transp.close()
2556+
transp._close()
25572557
raise
25582558
transp._attach_fileobj(pipe)
25592559
return transp, proto
@@ -2578,7 +2578,7 @@ cdef class Loop:
25782578
transp._init_protocol()
25792579
await waiter
25802580
except Exception:
2581-
transp.close()
2581+
transp._close()
25822582
raise
25832583
transp._attach_fileobj(pipe)
25842584
return transp, proto

0 commit comments

Comments
 (0)