Hero: zelftest en mapcontrole van de media draaien op de achtergrond, zodat de host niet later gaat luisteren

De hosted services starten voor de webserver; de zelftest van Magick (laden van de native bibliotheek en een testcodering) kostte op de Pi ongeveer 9 s voordat de host luisterde.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-16 17:20:59 +01:00
co-authored by Claude Sonnet 5.5
parent bd283d629d
commit 01703ccddf
5 changed files with 102 additions and 34 deletions
@@ -44,7 +44,7 @@ public static class HeroPictureRenderer
return textOnlyRegion ? new HeroInjection(TextOnlyRegion(hero), string.Empty) : HeroInjection.None;
}
var slide = hero.Slides.FirstOrDefault(IsUsable);
var slide = (hero.Slides ?? []).FirstOrDefault(IsUsable);
if (slide is null)
{
return HeroInjection.None;