Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions public_html/lists/admin/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -959,17 +959,19 @@ function getPageLock($force = 0)
cl_output($GLOBALS['I18N']->get('Running commandline, quitting. We\'ll find out what to do in the next run.'));
exit;
}
output($GLOBALS['I18N']->get('Sleeping for 20 seconds, aborting will quit'), 0);
if (function_exists('output')) {
output($GLOBALS['I18N']->get('Sleeping for 20 seconds, aborting will quit'), 0);
}
flush();
$abort = ignore_user_abort(0);
sleep(20);
}
++$waited;
if ($waited > 10) {
// we have waited 10 cycles, abort and quit script
output($GLOBALS['I18N']->get('We have been waiting too long, I guess the other process is still going ok'),
0);

if (function_exists('output')) {
output($GLOBALS['I18N']->get('We have been waiting too long, I guess the other process is still going ok'), 0);
}
return false;
}
$running_req = Sql_query('select now() - modified,id from '.$tables['sendprocess']." where page = \"$thispage\" and alive order by started desc");
Expand Down