From 0afccc956639684af5082513da8ba8f5105448f5 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 21 Sep 2024 19:12:07 +0200 Subject: [PATCH] Clarify comment. --- src/websockets/sync/connection.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/websockets/sync/connection.py b/src/websockets/sync/connection.py index 77b48809..97588870 100644 --- a/src/websockets/sync/connection.py +++ b/src/websockets/sync/connection.py @@ -87,9 +87,9 @@ def __init__( # Mapping of ping IDs to pong waiters, in chronological order. self.ping_waiters: dict[bytes, threading.Event] = {} - # Receiving events from the socket. This thread explicitly is marked as - # to support creating a connection in a non-daemon thread then using it - # 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. self.recv_events_thread = threading.Thread( target=self.recv_events, daemon=True,