mirror of
https://github.com/lmstudio-ai/lms.git
synced 2025-09-28 10:24:39 +08:00
Exit lms dev when LM Studio exits
This commit is contained in:
@ -250,4 +250,9 @@ async function handleDevServer(
|
|||||||
pluginProcess.run();
|
pluginProcess.run();
|
||||||
});
|
});
|
||||||
await watcher.start();
|
await watcher.start();
|
||||||
|
|
||||||
|
client.system.whenDisconnected().then(() => {
|
||||||
|
logger.info("Disconnected from the server. Stopping the development server.");
|
||||||
|
process.exit(1);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user