summaryrefslogtreecommitdiffstats
path: root/Lib/multiprocessing/connection.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/multiprocessing/connection.py')
-rw-r--r--Lib/multiprocessing/connection.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/multiprocessing/connection.py b/Lib/multiprocessing/connection.py
index 7c425a2..dbbf106 100644
--- a/Lib/multiprocessing/connection.py
+++ b/Lib/multiprocessing/connection.py
@@ -42,7 +42,6 @@ except ImportError:
BUFSIZE = 8192
# A very generous timeout when it comes to local connections...
CONNECTION_TIMEOUT = 20.
-WSA_OPERATION_ABORTED = 995
_mmap_counter = itertools.count()
@@ -300,7 +299,7 @@ if _winapi:
finally:
self._send_ov = None
nwritten, err = ov.GetOverlappedResult(True)
- if err == WSA_OPERATION_ABORTED:
+ if err == _winapi.ERROR_OPERATION_ABORTED:
# close() was called by another thread while
# WaitForMultipleObjects() was waiting for the overlapped
# operation.