Fixing the reload config issue.

This commit is contained in:
stephb9959
2021-09-21 08:46:18 -07:00
parent d1930ff075
commit 8c16868dc3
7 changed files with 58 additions and 29 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();