-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: avoid partial config read/writes.
The registry is written on AFTER the file. This means that failing to write to the registry will cause the file to be updated but not the registry. This is leaves the config in a bad state. To solve it, we create a backup of the file, and restore it when the registry write fails. The same happens when reading.
- Loading branch information
1 parent
b3ac855
commit c507226
Showing
1 changed file
with
40 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters