mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-06 02:48:04 +00:00
Fix: guard desktop stop state update on stopDesktop success
This commit is contained in:
parent
6ec66f57fd
commit
683f126dab
1 changed files with 4 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue