Skip to content

Commit 927c6ba

Browse files
authored
Fix SSL (#68)
1 parent c41f156 commit 927c6ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stompman/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async def connect(
5858
ssl: Literal[True] | SSLContext | None,
5959
) -> Self | None:
6060
try:
61-
reader, writer = await asyncio.wait_for(asyncio.open_connection(host, port), timeout=timeout)
61+
reader, writer = await asyncio.wait_for(asyncio.open_connection(host, port, ssl=ssl), timeout=timeout)
6262
except (TimeoutError, ConnectionError, socket.gaierror):
6363
return None
6464
else:

0 commit comments

Comments
 (0)