Fix retry logic to avoid triggering an assertion.

This commit is contained in:
jmmv 2012-04-05 01:04:18 +00:00
parent 04d84125dd
commit a2edf997c0
1 changed files with 1 additions and 1 deletions

View File

@ -137,9 +137,9 @@ retry_chmod:
subdirs = d.names();
ok = true;
} catch (const atf::system_error& e) {
retries--;
if (retries == 0)
throw e;
retries--;
::sleep(retry_delay_in_seconds);
}
}