Skip to content

Commit 7763e8e

Browse files
committed
stream: It's OK if shutdown gets called more than once in DEBUG mode
1 parent 4065e01 commit 7763e8e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

uvloop/handles/stream.pyx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ cdef class UVStream(UVBaseTransport):
7575
cdef int err
7676

7777
if self.__shutting_down:
78-
IF DEBUG:
79-
raise RuntimeError('UVStream: second shutdown call')
8078
return
8179
self.__shutting_down = 1
8280

0 commit comments

Comments
 (0)