From 7a1e1f0be26e18f098f807718c969e2ede134e19 Mon Sep 17 00:00:00 2001 From: Hector van der Aa Date: Wed, 29 Jul 2026 18:38:11 +0100 Subject: [PATCH] Added force retry on exit --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index f2438f1..389de0a 100644 --- a/main.py +++ b/main.py @@ -190,6 +190,7 @@ def unmountDisk(state: AppState) -> None: else: state.diskState = "disconnected" else: + print("force unmounting") subprocess.run( [ "umount", @@ -256,6 +257,8 @@ def main() -> None: state.stopEvent.set() if state.diskState == "connected": unmountDisk(state) + if state.failedUmount: + unmountDisk(state) return