mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-05-06 04:47:08 -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:
parent
4bfd40219b
commit
c02896ea17
|
|
@ -23,6 +23,7 @@ bool setup()
|
|||
{
|
||||
AddSaveStep(saveConnections);
|
||||
AddLoadStep(loadConnections);
|
||||
AddPluginCleanupStep([]() { connections.clear(); });
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -718,6 +718,7 @@ static bool setup()
|
|||
{
|
||||
AddSaveStep(SaveMqttConnections);
|
||||
AddLoadStep(LoadMqttConnections);
|
||||
AddPluginCleanupStep([]() { GetMqttConnections().clear(); });
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user