Fix two small errors in game launch helper
This commit is contained in:
parent
3469946ee9
commit
625066d2da
1 changed files with 6 additions and 3 deletions
|
@ -40,7 +40,7 @@ class PreLaunchThread(QRunnable):
|
|||
def prepare_launch(self, app_name) -> Union[LaunchArgs, None]:
|
||||
try:
|
||||
args = get_launch_args(self.core, InitArgs(app_name))
|
||||
except GameArgsError as e:
|
||||
except Exception as e:
|
||||
self.signals.error_occurred.emit(str(e))
|
||||
return None
|
||||
if not args:
|
||||
|
@ -196,8 +196,11 @@ class GameProcessApp(RareApp):
|
|||
|
||||
def stop(self):
|
||||
self.logger.info("Stopping server")
|
||||
try:
|
||||
self.server.close()
|
||||
self.server.deleteLater()
|
||||
except RuntimeError:
|
||||
pass
|
||||
self.exit_app.emit()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue