Added force retry on exit
This commit is contained in:
3
main.py
3
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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user