update
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user