This commit is contained in:
2025-11-18 14:16:27 +00:00
parent 1fe3cd7f14
commit 44267bbb27
9 changed files with 703 additions and 160 deletions

View File

@@ -386,7 +386,15 @@ export class OneboxServicesManager {
ourStatus = 'starting';
}
this.database.updateService(service.id!, { status: ourStatus });
// Only update and broadcast if status changed
if (service.status !== ourStatus) {
this.database.updateService(service.id!, { status: ourStatus });
// Broadcast status change via WebSocket
if (this.oneboxRef.httpServer) {
this.oneboxRef.httpServer.broadcastServiceStatus(name, ourStatus);
}
}
} catch (error) {
logger.debug(`Failed to sync status for service ${name}: ${error.message}`);
}