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