make threading optional

This commit is contained in:
2023-07-08 00:34:55 -04:00
parent 6c155a5e48
commit 03cf535ff6
4 changed files with 12 additions and 1 deletions

View File

@ -283,4 +283,7 @@ if __name__ == "__main__":
server.Site(dispatcher)
)
Thread(target=reactor.run, args=(False,)).start()
if cfg.server.threading:
Thread(target=reactor.run, args=(False,)).start()
else:
reactor.run()