added setup kvvars

This commit is contained in:
Kevin 2020-07-29 20:23:48 -05:00
parent 5bde99967b
commit 6f1daf50d3
3 changed files with 50 additions and 27 deletions

View file

@ -39,6 +39,7 @@ from lan import LANManager
from lan.server import LANServer
from sneakernet import sneakernet_import_thread
from onionrstatistics.devreporting import statistics_reporter
from setupkvvars import setup_kv
"""
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -135,6 +136,9 @@ def daemon():
# Add DeadSimpleKV for quasi-global variables (ephemeral key-value)
shared_state.get(DeadSimpleKV)
# Initialize the quasi-global variables
setup_kv(shared_state.get(DeadSimpleKV))
shared_state.get(daemoneventsapi.DaemonEventsBP)
Thread(target=shared_state.get(apiservers.ClientAPI).start,