mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-07 06:44:16 +00:00
Another attempt to fix Windows. Resolves issue 200.
This commit is contained in:
parent
8648e02f52
commit
c5d0573107
@ -196,6 +196,8 @@ public class Wallet implements Serializable {
|
||||
// to not write through to physical media for at least a few seconds, but this is the best we can do.
|
||||
stream.flush();
|
||||
stream.getFD().sync();
|
||||
stream.close();
|
||||
stream = null;
|
||||
if (!temp.renameTo(f)) {
|
||||
// Work around an issue on Windows whereby you can't rename over existing files.
|
||||
if (System.getProperty("os.name").toLowerCase().indexOf("win") >= 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user