fix server restart

This commit is contained in:
Vladimir Mandic
2023-09-08 07:36:17 -04:00
parent e0d8a9242a
commit 2a213e8e84
+1 -1
View File
@@ -220,7 +220,7 @@ if __name__ == "__main__":
state = f'job="{instance.state.job}" {instance.state.job_no}/{instance.state.job_count}'
installer.log.debug(f'Server alive={alive} requests={requests} memory {get_memory_stats()} {state}')
if not alive:
if instance.wants_restart:
if uv.wants_restart:
installer.log.info('Server restarting...')
uv, instance = start_server(immediate=False, server=instance)
else: