diff options
Diffstat (limited to 'src/StateFile.cxx')
-rw-r--r-- | src/StateFile.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/StateFile.cxx b/src/StateFile.cxx index 8d17a1827..7c92ae0ee 100644 --- a/src/StateFile.cxx +++ b/src/StateFile.cxx @@ -92,10 +92,12 @@ StateFile::Write() try { Error error; FileOutputStream fos(path); - if (!Write(fos, error) || !fos.Commit(error)) { + if (!Write(fos, error)) { LogError(error); return; } + + fos.Commit(); } catch (const std::exception &e) { LogError(e); } |