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 34a31b8 commit 81fc657Copy full SHA for 81fc657
src/lmstudio/_ws_impl.py
@@ -245,13 +245,13 @@ def connect(self) -> bool:
245
loop = ws_thread.wait_for_loop() # Block until loop is available
246
if loop is None:
247
raise RuntimeError("Websocket handling thread has no event loop")
248
- ws_thread.schedule_background_task(self._run_ws_handler())
+ ws_thread.schedule_background_task(self._run_until_terminated())
249
asyncio.run_coroutine_threadsafe(
250
self._connection_attempted.wait(), loop
251
).result()
252
return self._ws is not None
253
254
- async def _run_ws_handler(self) -> None:
+ async def _task_target(self) -> None:
255
self._logger.info("Websocket handling task started")
256
self._init_event_loop()
257
try:
0 commit comments