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:
|
else:
|
||||||
state.diskState = "disconnected"
|
state.diskState = "disconnected"
|
||||||
else:
|
else:
|
||||||
|
print("force unmounting")
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
[
|
[
|
||||||
"umount",
|
"umount",
|
||||||
@@ -256,6 +257,8 @@ def main() -> None:
|
|||||||
state.stopEvent.set()
|
state.stopEvent.set()
|
||||||
if state.diskState == "connected":
|
if state.diskState == "connected":
|
||||||
unmountDisk(state)
|
unmountDisk(state)
|
||||||
|
if state.failedUmount:
|
||||||
|
unmountDisk(state)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user