mirror of
https://github.com/evennia/evennia.git
synced 2026-03-30 12:37:16 +02:00
Handle scripts with negative intervals.
This commit is contained in:
parent
f0bae25ca0
commit
af558ede7c
1 changed files with 1 additions and 1 deletions
|
|
@ -328,7 +328,7 @@ class DefaultScript(ScriptBase):
|
|||
"""
|
||||
if self.is_active and not force_restart:
|
||||
# The script is already running, but make sure we have a _task if this is after a cache flush
|
||||
if not self.ndb._task:
|
||||
if not self.ndb._task and self.db_interval >= 0:
|
||||
self.ndb._task = ExtendedLoopingCall(self._step_task)
|
||||
try:
|
||||
start_delay, callcount = SCRIPT_FLUSH_TIMERS[self.id]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue