1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Handle Matrix process correctly

This commit is contained in:
Steffo 2020-03-31 01:02:57 +02:00
parent c1680ed78d
commit 6b0d286391

View file

@ -109,9 +109,9 @@ def run(config_filename: str):
"serf_cfg": config["Serfs"]["Matrix"],
})
matrix_process.start()
log.info("Serf.Discord: Started")
log.info("Serf.Matrix: Started")
else:
log.info("Serf.Discord: Disabled")
log.info("Serf.Matrix: Disabled")
# Constellation
constellation_process = None
@ -139,6 +139,8 @@ def run(config_filename: str):
telegram_process.join()
if discord_process is not None:
discord_process.join()
if matrix_process is not None:
matrix_process.join()
if herald_process is not None:
herald_process.join()