Fixed critical bug where servers were abandoned at exit

This commit is contained in:
computergeek125 2021-03-13 09:24:17 -06:00
parent 653a4d6bc7
commit b957d73acb
2 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ class Controller:
svr_data = self.get_server_data(server_id)
server_name = svr_data['server_name']
running = svr_obj.check_running(True)
running = svr_obj.check_running()
# issue the stop command
svr_obj.stop_threaded_server()

View File

@ -90,7 +90,7 @@ class TasksManager:
os.remove(os.path.join(helper.root_dir, '.header'))
controller.stop_all_servers()
except:
pass
logger.info("Caught error during shutdown", exc_info=True)
logger.info("***** Crafty Shutting Down *****\n\n")
console.info("***** Crafty Shutting Down *****\n\n")