Skip to content

Commit ae0f0d9

Browse files
committed
fix: update disconnect method to close transport directly
1 parent de005de commit ae0f0d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wokwi_client/client_sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def disconnect(self) -> None:
119119

120120
# (2) Disconnect transport
121121
with contextlib.suppress(Exception):
122-
self._call(self._async_client.disconnect())
122+
self._call(self._async_client._transport.close())
123123

124124
# (3) Stop loop / join thread
125125
if self._loop.is_running():

0 commit comments

Comments
 (0)