Exit lms dev when LM Studio exits

This commit is contained in:
Ryan Huang
2024-11-05 16:30:39 -05:00
parent 4e9d5e8a8a
commit 7e8fc6b101

View File

@ -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);
});
}