This commit is contained in:
Simon 2020-09-30 21:45:01 +01:00
parent 28ac8f9734
commit 842eed71a9

View File

@ -309,8 +309,8 @@ def mysql_config_check():
return
for system in SQLCONFIG:
if system not in CONFIG['SYSTEMS']:
logger.debug('(MYSQL) new system %s, starting HBP listener',system)
if system not in CONFIG['SYSTEMS'] and SQLCONFIG[system]['ENABLED'] == True:
logger.debug('(MYSQL) new enabled system %s, starting HBP listener',system)
CONFIG['SYSTEMS'][system] = SQLCONFIG[system]
systems[system] = routerHBP(system, CONFIG, report_server)
listeningPorts[system] = reactor.listenUDP(CONFIG['SYSTEMS'][system]['PORT'], systems[system], interface=CONFIG['SYSTEMS'][system]['IP'])