Resolve a deadlock in write_receptor_config()

This commit is contained in:
Jeff Bradberry
2022-08-31 15:49:40 -04:00
parent 1b650d6927
commit ebd200380a

View File

@@ -652,6 +652,7 @@ def write_receptor_config():
with open(__RECEPTOR_CONF, 'w') as file: with open(__RECEPTOR_CONF, 'w') as file:
yaml.dump(receptor_config, file, default_flow_style=False) yaml.dump(receptor_config, file, default_flow_style=False)
# This needs to be outside of the lock because this function itself will acquire the lock.
receptor_ctl = get_receptor_ctl() receptor_ctl = get_receptor_ctl()
attempts = 10 attempts = 10