Skip to content
Snippets Groups Projects
Commit 3a5cc819 authored by Robin.Mueller's avatar Robin.Mueller
Browse files

problem with backend/ multiprocessing

parent a0e33957
Branches
No related tags found
No related merge requests found
...@@ -65,7 +65,7 @@ class TmTcHandler: ...@@ -65,7 +65,7 @@ class TmTcHandler:
if self.mode == g.ModeList.Idle: if self.mode == g.ModeList.Idle:
LOGGER.info("TMTC Client in idle mode") LOGGER.info("TMTC Client in idle mode")
time.sleep(5) time.sleep(5)
if self.mode == g.ModeList.ListenerMode: elif self.mode == g.ModeList.ListenerMode:
time.sleep(1) time.sleep(1)
except KeyboardInterrupt: except KeyboardInterrupt:
LOGGER.info("Closing TMTC client.") LOGGER.info("Closing TMTC client.")
......
...@@ -56,16 +56,17 @@ def run_tmtc_client(use_gui: bool): ...@@ -56,16 +56,17 @@ def run_tmtc_client(use_gui: bool):
else: else:
tmtc_handler = TmTcHandler(g.G_MODE_ID) tmtc_handler = TmTcHandler(g.G_MODE_ID)
tmtc_handler_task = tmtc_handler.prepare_start() # tmtc_handler_task = tmtc_handler.prepare_start()
tmtc_frontend_task = Process() tmtc_frontend_task = Process()
if use_gui: if use_gui:
tmtc_frontend = TmTcFrontend(tmtc_handler) tmtc_frontend = TmTcFrontend(tmtc_handler)
tmtc_frontend_task = tmtc_frontend.prepare_start() tmtc_frontend_task = tmtc_frontend.prepare_start()
tmtc_frontend_task.start() tmtc_frontend_task.start()
tmtc_handler_task.start() # tmtc_handler_task.start()
tmtc_handler.perform_operation()
tmtc_handler_task.join() # tmtc_handler_task.join()
if use_gui: if use_gui:
tmtc_frontend_task.join() tmtc_frontend_task.join()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment