|
|
|
|
@ -417,6 +417,7 @@ def SubMapTrimmer():
|
|
|
|
|
for _remove in _remove_list:
|
|
|
|
|
SUB_MAP.pop(_remove)
|
|
|
|
|
|
|
|
|
|
if CONFIG['ALIASES']['SUB_MAP_FILE']:
|
|
|
|
|
subMapWrite()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2610,6 +2611,7 @@ if __name__ == '__main__':
|
|
|
|
|
hblink_handler(_signal, _frame)
|
|
|
|
|
logger.info('(GLOBAL) SHUTDOWN: ALL SYSTEM HANDLERS EXECUTED - STOPPING REACTOR')
|
|
|
|
|
reactor.stop()
|
|
|
|
|
if CONFIG['ALIASES']['SUB_MAP_FILE']:
|
|
|
|
|
subMapWrite()
|
|
|
|
|
|
|
|
|
|
# Set signal handers so that we can gracefully exit if need be
|
|
|
|
|
@ -2635,6 +2637,7 @@ if __name__ == '__main__':
|
|
|
|
|
#SUB_MAP = {bytes_3(73578):('REP-1',1,time())}
|
|
|
|
|
SUB_MAP = {}
|
|
|
|
|
|
|
|
|
|
if CONFIG['ALIASES']['SUB_MAP_FILE']:
|
|
|
|
|
try:
|
|
|
|
|
with open(CONFIG['ALIASES']['SUB_MAP_FILE']) as _json_file:
|
|
|
|
|
SUB_MAP = json.load(_json_file)
|
|
|
|
|
|