This commit is contained in:
friendica
2014-10-21 16:34:14 -07:00
2 changed files with 9 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ function poller_run($argv, $argc){
if(! $interval)
$interval = ((get_config('system','delivery_interval') === false) ? 3 : intval(get_config('system','delivery_interval')));
// Check for a logfile. If it exists, but is over an hour old, it's stale. Ignore it.
// Check for a lockfile. If it exists, but is over an hour old, it's stale. Ignore it.
$lockfile = 'store/[data]/poller';
if ((file_exists($lockfile)) && (filemtime($lockfile) > (time() - 3600))) {
logger("poller: Already running");