Fix: guard desktop stop state update on stopDesktop success

This commit is contained in:
volker 2026-03-31 21:14:12 +02:00
parent 6ec66f57fd
commit 683f126dab

View file

@ -84,8 +84,10 @@
loading = true;
try {
if (status?.running) {
await stopDesktop(baseUrl, apiKey);
status = { running: false };
const stopped = await stopDesktop(baseUrl, apiKey);
if (stopped) {
status = { running: false };
}
} else {
await ensureRunning();
}