mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Fixed HTTP 500 while cron running in server-side (#1321)
* Fixed HTTP 500 while cron running in server-side * Update CHANGELOG.md
This commit is contained in:
parent
125cd11c01
commit
9b10b16460
2 changed files with 7 additions and 2 deletions
|
@ -447,11 +447,15 @@ if (($bb_cfg['board_disable'] || is_file(BB_DISABLED)) && !defined('IN_ADMIN') &
|
|||
if ($bb_cfg['board_disable']) {
|
||||
// admin lock
|
||||
send_no_cache_headers();
|
||||
bb_die('BOARD_DISABLE', 503);
|
||||
if (\TorrentPier\Helpers\CronHelper::isEnabled()) {
|
||||
bb_die('BOARD_DISABLE', 503);
|
||||
}
|
||||
} elseif (is_file(BB_DISABLED)) {
|
||||
// trigger lock
|
||||
TorrentPier\Helpers\CronHelper::releaseDeadlock();
|
||||
send_no_cache_headers();
|
||||
bb_die('BOARD_DISABLE_CRON', 503);
|
||||
if (\TorrentPier\Helpers\CronHelper::isEnabled()) {
|
||||
bb_die('BOARD_DISABLE_CRON', 503);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue