Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfies committed Dec 1, 2024
1 parent dccd63a commit 5b18117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion curl_cffi/requests/websockets.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ async def recv(self, *, timeout: Optional[float] = None) -> Tuple[bytes, int]:
chunks = []
flags = 0

sock_fd = loop.run_in_executor(None, self.curl.getinfo, CurlInfo.ACTIVESOCKET)
sock_fd = await loop.run_in_executor(None, self.curl.getinfo, CurlInfo.ACTIVESOCKET)
if sock_fd == CURL_SOCKET_BAD:
raise WebSocketError("Invalid active socket", CurlECode.NO_CONNECTION_AVAILABLE)
while True:
Expand Down

0 comments on commit 5b18117

Please sign in to comment.