Skip to content

Commit 7454f89

Browse files
author
Pavel Minaev
authored
Fix sporadic EBADF from accept()
1 parent fb9590f commit 7454f89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/debugpy/common/sockets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def accept_worker():
7878
while True:
7979
try:
8080
sock, (other_host, other_port) = listener.accept()
81-
except OSError:
81+
except (OSError, socket.error):
8282
# Listener socket has been closed.
8383
break
8484

0 commit comments

Comments
 (0)