Skip to content

Commit

Permalink
quality: thread initial sync. i think it works?
Browse files Browse the repository at this point in the history
  • Loading branch information
stowmyy committed Nov 5, 2023
1 parent 59f0223 commit 5aef11d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dropship/src/DashboardManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,8 @@ DashboardManager::DashboardManager() :
}
}).detach();


std::thread([&]()
{
// 1) load rules from wf.msc
firewallManager._syncFirewallWithEndpoints(&(this->endpoints));
Expand All @@ -357,6 +359,7 @@ DashboardManager::DashboardManager() :
// 3) sync with endpoints
firewallManager._syncEndpointsWithFirewall(&(this->endpoints));
}
).detach();

}

Expand Down

0 comments on commit 5aef11d

Please sign in to comment.