Clear websocket and mqtt connections on shutdown

This was previously implicitly done by a settings reload on shutdown,
but this has since been removed, and we need to clear the connections
explicitly.
This commit is contained in:
WarmUpTill
2026-04-30 15:55:31 +02:00
committed by WarmUpTill
parent 4bfd40219b
commit c02896ea17
2 changed files with 2 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ bool setup()
{
AddSaveStep(saveConnections);
AddLoadStep(loadConnections);
AddPluginCleanupStep([]() { connections.clear(); });
return true;
}