Skip to content

Commit

Permalink
Handle scripts with negative intervals.
Browse files Browse the repository at this point in the history
  • Loading branch information
TehomCD committed May 10, 2018
1 parent 9ee4204 commit 058c650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evennia/scripts/scripts.py
Expand Up @@ -328,7 +328,7 @@ def start(self, force_restart=False):
"""
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]
Expand Down

0 comments on commit 058c650

Please sign in to comment.