mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1001948 - Attempt to remove the files again if ERROR_DIR_NOT_EMPTY is thrown. r=tabraldes
This commit is contained in:
parent
1021e2a017
commit
c4d263c432
@ -267,7 +267,8 @@ function TestAppInfo(aApp, aIsPackaged) {
|
||||
removed = true;
|
||||
} catch (ex if ex instanceof OS.File.Error &&
|
||||
(ex.winLastError == OS.Constants.Win.ERROR_ACCESS_DENIED ||
|
||||
ex.winLastError == OS.Constants.Win.ERROR_SHARING_VIOLATION)) {
|
||||
ex.winLastError == OS.Constants.Win.ERROR_SHARING_VIOLATION ||
|
||||
ex.winLastError == OS.Constants.Win.ERROR_DIR_NOT_EMPTY)) {
|
||||
// Wait 100 ms before attempting to remove again.
|
||||
yield wait(100);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user