Skip to content

Commit 0c894e2

Browse files
committed
initialize states before super().__init__()
1 parent 938e00c commit 0c894e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Lib/multiprocessing/connection.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,13 +286,13 @@ class PipeConnection(_ConnectionBase):
286286
_got_empty_message = False
287287

288288
def __init__(self, handle, readable=True, writable=True):
289-
super().__init__(handle, readable, writable)
290289
# Several threads may write to the same connection. Keep track of
291290
# all pending overlapped operations so that close() can cancel
292291
# them.
293292
self._send_ov = []
294293
self._send_ov_lock = threading.Lock()
295294
self._closing = False
295+
super().__init__(handle, readable, writable)
296296

297297
def _close(self, _CloseHandle=_winapi.CloseHandle):
298298
with self._send_ov_lock:

0 commit comments

Comments
 (0)