mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix server not being cleaned up when killed.
This commit is contained in:
parent
20ea3c402d
commit
2efcacceb5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user