Fixed a perhaps rare crash during rate testing. (#367)

This commit is contained in:
Joe Testa committed 2026-07-09 18:55:12 -04:00
1 parent 45f64b12cf
commit 111399e431
2 files changed
+5 -1

No files matched your search

+2 -1
View File
@@ -324,7 +324,8 @@ class DHEat:
except OSError:
pass
del socket_dict[s]
if s in socket_dict:
del socket_dict[s]
# Check if this platform has socket.AF_UNIX. Windows does not.
has_af_unix = hasattr(socket, 'AF_UNIX')