Version 4.1.2

This commit is contained in:
Neo committed 2025-12-19 05:32:19 -08:00
1 parent 3ba79295ee
commit 28bd025b35
1131 files changed
+63658 -20579

No files matched your search

+4 -1
View File
@@ -205,7 +205,10 @@ class _Task extends \IPS\Patterns\ActiveRecord
if ( $this->running )
{
$this->running = FALSE;
$this->lock_count++;
if ( $this->lock_count < 3 ) // Allowing this to grow infinitely will eventually overflow. The warning triggers at 3, so we only need to know if it's more than 3 or not.
{
$this->lock_count++;
}
$this->next_run = \IPS\DateTime::create()->add( new \DateInterval( $this->frequency ) )->getTimestamp();
$this->save();
$this->cleanup();