mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-12 04:11:06 -05:00
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:
@@ -23,6 +23,7 @@ bool setup()
|
||||
{
|
||||
AddSaveStep(saveConnections);
|
||||
AddLoadStep(loadConnections);
|
||||
AddPluginCleanupStep([]() { connections.clear(); });
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user