mirror of
https://github.com/lmstudio-ai/lms.git
synced 2025-09-23 09:44:09 +08:00
Exit lms dev when LM Studio exits
This commit is contained in:
@ -250,4 +250,9 @@ async function handleDevServer(
|
||||
pluginProcess.run();
|
||||
});
|
||||
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