Set online after preload. Move ident to include in if check.

This commit is contained in:
Marc-Andre Ferland 2022-10-28 04:09:34 -04:00
parent 2432491bfc
commit 26562e445f

View File

@ -252,7 +252,7 @@ def thread_render(device):
}
if runtime.thread_data.device != 'cpu' or is_alive() == 1:
preload_model()
current_state = ServerStates.Online
current_state = ServerStates.Online
while True:
task_cache.clean()
if isinstance(current_state_error, SystemExit):