Skip to content

Commit 0afccc9

Browse files
committed
Clarify comment.
1 parent 3640923 commit 0afccc9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/websockets/sync/connection.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ def __init__(
8787
# Mapping of ping IDs to pong waiters, in chronological order.
8888
self.ping_waiters: dict[bytes, threading.Event] = {}
8989

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.
90+
# Receiving events from the socket. This thread is marked as daemon to
91+
# allow creating a connection in a non-daemon thread and using it in a
92+
# daemon thread. This mustn't prevent the interpreter from exiting.
9393
self.recv_events_thread = threading.Thread(
9494
target=self.recv_events,
9595
daemon=True,

0 commit comments

Comments
 (0)