Fixing daemon reload.

This commit is contained in:
stephb9959
2021-09-21 08:56:37 -07:00
parent ba20e9a16f
commit aa95294a51
8 changed files with 68 additions and 30 deletions

View File

@@ -85,7 +85,10 @@ namespace OpenWifi {
std::thread ReloadThread([Names](){
std::this_thread::sleep_for(10000ms);
for(const auto &i:Names) {
Daemon()->Reload(i);
if(i=="daemon")
Daemon()->Reload();
else
Daemon()->Reload(i);
}
});
ReloadThread.detach();