mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Merge pull request #2178 from luyijun/myfix
Fix a bug that script whose db_interval is 0 will be run when call its start method twice.
This commit is contained in:
commit
cfc1a0bca0
1 changed files with 1 additions and 1 deletions
|
|
@ -437,7 +437,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 and self.db_interval >= 0:
|
||||
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