|
|
@ -32,6 +32,9 @@ function poller_run($argv, $argc){ |
|
|
|
|
|
|
|
Config::load(); |
|
|
|
|
|
|
|
// Check the database structure and possibly fixes it
|
|
|
|
check_db(true); |
|
|
|
|
|
|
|
// Quit when in maintenance
|
|
|
|
if (Config::get('system', 'maintenance', true)) { |
|
|
|
return; |
|
|
@ -890,9 +893,6 @@ function poller_run_cron() { |
|
|
|
} |
|
|
|
|
|
|
|
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(); |
|
|
|