Bugfix umount path.

master3.3 2.2.1
Самоукин Алексей 14 years ago
parent a9b2273da2
commit d92d584b0f

@ -1737,8 +1737,13 @@ class client(share, commandServer, encrypt):
i += 1
if textLines is False:
self.execProg("fuser -km %s"%path)
textLines = self.execProg("umount %s"%path)
if textLines is False:
sleeps = [0.5, 0.5, 0.5, 0.5, 0.5, 0.5]
i = 0
while (i<len(sleeps) and isMount(path)):
time.sleep(sleeps[i])
self.execProg("umount %s"%path)
i += 1
if isMount(path):
self.printERROR(_("Can not unmount path %s")%path + " ...")
return False
return True

Loading…
Cancel
Save