Fix server not being cleaned up when killed.

This commit is contained in:
Andrew 2022-03-18 21:50:09 -04:00
parent 20ea3c402d
commit 2efcacceb5

View File

@ -336,6 +336,9 @@ class AjaxHandler(BaseHandler):
svr = self.controller.get_server_obj(server_id)
try:
svr.kill()
time.sleep(5)
svr.cleanup_server_object()
svr.record_server_stats()
except Exception as e:
logger.error(f"Could not find PID for requested termsig. Full error: {e}")
return