From 2efcacceb5d08ded124708d3fbe0465570d66691 Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 18 Mar 2022 21:50:09 -0400 Subject: [PATCH] Fix server not being cleaned up when killed. --- app/classes/web/ajax_handler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/classes/web/ajax_handler.py b/app/classes/web/ajax_handler.py index 10d5857a..3c9c05e5 100644 --- a/app/classes/web/ajax_handler.py +++ b/app/classes/web/ajax_handler.py @@ -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