diff --git a/umu/umu_run.py b/umu/umu_run.py index 655cb0eb..a7f736aa 100755 --- a/umu/umu_run.py +++ b/umu/umu_run.py @@ -478,8 +478,6 @@ def get_window_client_ids() -> list[str]: return [] except Exception as e: log.exception(e) - finally: - d.close() return [] @@ -525,8 +523,6 @@ def set_steam_game_property( # noqa: D103 window_id, ) log.exception(e) - finally: - d.close() def get_gamescope_baselayer_order() -> list[int] | None: # noqa: D103 @@ -558,8 +554,6 @@ def get_gamescope_baselayer_order() -> list[int] | None: # noqa: D103 except Exception as e: log.error("Error getting GAMESCOPECTRL_BASELAYER_APPID property") log.exception(e) - finally: - d.close() return None @@ -607,8 +601,6 @@ def set_gamescope_baselayer_order(rearranged: list[int]) -> None: # noqa except Exception as e: log.error("Error setting GAMESCOPECTRL_BASELAYER_APPID property") log.exception(e) - finally: - d.close() def window_setup(gamescope_baselayer_sequence: list[int]) -> None: # noqa