We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3640923 commit 0afccc9Copy full SHA for 0afccc9
src/websockets/sync/connection.py
@@ -87,9 +87,9 @@ def __init__(
87
# Mapping of ping IDs to pong waiters, in chronological order.
88
self.ping_waiters: dict[bytes, threading.Event] = {}
89
90
- # Receiving events from the socket. This thread explicitly is marked as
91
- # to support creating a connection in a non-daemon thread then using it
92
- # in a daemon thread; this shouldn't block the intpreter from exiting.
+ # Receiving events from the socket. This thread is marked as daemon to
+ # allow creating a connection in a non-daemon thread and using it in a
+ # daemon thread. This mustn't prevent the interpreter from exiting.
93
self.recv_events_thread = threading.Thread(
94
target=self.recv_events,
95
daemon=True,
0 commit comments