mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 23:32:16 +00:00
Wallet: try deleting the temp file in the finally block and print a warning if it succeeded.
Resolves issue 362.
This commit is contained in:
parent
301db707b1
commit
9201cba0cc
@ -415,6 +415,9 @@ public class Wallet implements Serializable, BlockChainListener {
|
|||||||
if (stream != null) {
|
if (stream != null) {
|
||||||
stream.close();
|
stream.close();
|
||||||
}
|
}
|
||||||
|
if (temp.delete()) {
|
||||||
|
log.warn("Deleted temp file after failed save.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user