Avoids global variables in teosd for better testing

This commit is contained in:
Sergi Delgado Segura
2020-03-21 22:52:16 +01:00
parent 2587e25637
commit 6595c2d790

View File

@@ -34,7 +34,7 @@ def handle_signals(signal_received, frame):
exit(0)
def main():
def main(command_line_conf):
global db_manager, chain_monitor
signal(SIGINT, handle_signals)
@@ -182,4 +182,4 @@ if __name__ == "__main__":
except GetoptError as e:
exit(e)
main()
main(command_line_conf)