Explorar o código

Add empty send_operations for intermediate tasknames

Yentl Van Tendeloo %!s(int64=7) %!d(string=hai) anos
pai
achega
581d79e482
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      model/model.py

+ 1 - 0
model/model.py

@@ -429,6 +429,7 @@ class ModelverseInterface(AtomicDEVS):
                     task_name, _ = prev_output.split(" : ", 1)
                     self.state.blocked = True
                     self.state.task_to_spawner[task_name] = None
+                    self.state.send_operations[task_name] = [[]]
                     # NOTE We now know that there is something to do on an other task, so we just wait for that event to come in
                     self.state.operations.insert(0, [])
                     self.state.operations.insert(0, [])