Skip to content
Snippets Groups Projects
Commit 6fd6508c authored by shinedday's avatar shinedday
Browse files

Fix scheduler init

parent 064f30fd
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ class Amas(Schedulable):
self._nombre_cycle = 0
self._environnement = environment
self._runningAsyncAgents = []
self._scheduler = Scheduler(self)
self._scheduler = Scheduler([self])
self._scheduler.lock()
self.on_initial_configuration()
self.on_initial_agents_creation()
......
......@@ -27,7 +27,7 @@ class Environment(Schedulable):
self._id = Environment._index
Environment._index += 1
self._scheduler = Scheduler(self)
self._scheduler = Scheduler([self])
self._scheduler.lock()
self.on_initialization()
self._scheduler.unlock()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment