Skip to content

Commit 32504a8

Browse files
committed
Prevent suprious log when proxy rejects connection.
Fix #1762.
1 parent 7db6ba3 commit 32504a8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/websockets/asyncio/client.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ def __init__(
734734
self.response: asyncio.Future[Response] = loop.create_future()
735735

736736
def run_parser(self) -> None:
737+
if self.response.done():
738+
return
737739
try:
738740
next(self.parser)
739741
except StopIteration as exc:

0 commit comments

Comments
 (0)