mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Add a check to not create a task to watch a script if the task already exists
This commit is contained in:
parent
f6988610cd
commit
ec63d43905
1 changed files with 4 additions and 0 deletions
|
|
@ -170,6 +170,10 @@ class DefaultScript(ScriptBase):
|
|||
|
||||
"""
|
||||
|
||||
if self.ndb._task and self.ndb._task.running:
|
||||
# The task already exists, doesn't start it again
|
||||
return
|
||||
|
||||
self.ndb._task = ExtendedLoopingCall(self._step_task)
|
||||
|
||||
if self.db._paused_time:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue