mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 10:23:54 +00:00
Merge pull request #1944 from theopolis/tls_config_interrupt
Check for interrupt requests in TLS config refresher
This commit is contained in:
commit
4a88311ca2
@ -116,6 +116,11 @@ void TLSConfigRefreshRunner::start() {
|
||||
// Cool off and time wait the configured period.
|
||||
// Apply this interruption initially as at t=0 the config was read.
|
||||
pauseMilli(FLAGS_config_tls_refresh * 1000);
|
||||
// Since the pause occurs before the logic, we need to check for an
|
||||
// interruption request.
|
||||
if (interrupted()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Access the configuration.
|
||||
auto plugin = Registry::get("config", "tls");
|
||||
|
Loading…
Reference in New Issue
Block a user