diff --git a/CommonClient.py b/CommonClient.py index 1111adb080cc..c367bd47ee4b 100755 --- a/CommonClient.py +++ b/CommonClient.py @@ -65,6 +65,8 @@ def output(self, text: str): def _cmd_exit(self) -> bool: """Close connections and client""" + if self.ctx.ui: + self.ctx.ui.stop() self.ctx.exit_event.set() return True diff --git a/WebHostLib/templates/playerOptions/macros.html b/WebHostLib/templates/playerOptions/macros.html index a4cc3aa5acf3..1df4ada7ead5 100644 --- a/WebHostLib/templates/playerOptions/macros.html +++ b/WebHostLib/templates/playerOptions/macros.html @@ -55,6 +55,9 @@ {{ OptionTitle(option_name, option) }}