The direct structure call is now only executed when called via the poller.php

This commit is contained in:
Michael 2017-09-30 17:12:27 +00:00
commit 2971501f63
4 changed files with 8 additions and 6 deletions

View file

@ -889,7 +889,10 @@ function poller_run_cron() {
poller_kill_stale_workers();
}
if (array_search(__file__,get_included_files())===0){
if (array_search(__file__,get_included_files())===0) {
// Check the database structure and possibly fixes it
check_db(true);
poller_run($_SERVER["argv"],$_SERVER["argc"]);
poller_unclaim_process();