Bug 1001948 - Attempt to remove the files again if ERROR_DIR_NOT_EMPTY is thrown. r=tabraldes

This commit is contained in:
Marco Castelluccio 2014-07-10 19:46:27 +02:00
parent 1021e2a017
commit c4d263c432

View File

@ -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);
}