From d6fcea23a427322e70170f2a90e8efbea52926f6 Mon Sep 17 00:00:00 2001 From: Oleg Pudeyev Date: Sun, 9 May 2010 14:58:26 -0400 Subject: [PATCH] [feature/system-cron] Note that releasing a released cron lock is harmless. PHPBB3-9596 --- phpBB/includes/cron/cron_lock.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpBB/includes/cron/cron_lock.php b/phpBB/includes/cron/cron_lock.php index 1046d62da4..1af3724709 100644 --- a/phpBB/includes/cron/cron_lock.php +++ b/phpBB/includes/cron/cron_lock.php @@ -63,6 +63,11 @@ class cron_lock return true; } + /** + * Releases cron lock. + * + * Attempting to release a cron lock that is already released is harmless. + */ function unlock() { global $db;