We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a46c21c commit 9f17e92Copy full SHA for 9f17e92
src/websockets/sync/connection.py
@@ -743,6 +743,7 @@ def terminate_pending_pings(self) -> None:
743
Acknowledge pending pings when the connection is closed.
744
745
"""
746
+ assert self.protocol_mutex.locked()
747
assert self.protocol.state is CLOSED
748
749
for pong_received, _ping_timestamp, ack_on_close in self.pending_pings.values():
0 commit comments