added watchdog

This commit is contained in:
dadav
2020-04-16 17:35:41 +02:00
parent 1f7bc60de6
commit 311931c81d
5 changed files with 107 additions and 5 deletions

View File

@ -364,7 +364,7 @@ class Agent(Client, Automata, AsyncAdvertiser, AsyncTrainer):
def start_event_polling(self):
# start a thread and pass in the mainloop
_thread.start_new_thread(self._event_poller, (asyncio.new_event_loop(),))
_thread.start_new_thread(self._event_poller, (asyncio.get_event_loop(),))
def is_module_running(self, module):