Prevent incorrect error log about saving failed if an exception was thrown

This commit is contained in:
AsamK 2021-01-16 08:58:59 +01:00
parent 9a775171b5
commit c0f5ff8805

View file

@ -585,7 +585,9 @@ public class SignalAccount implements Closeable {
@Override @Override
public void close() throws IOException { public void close() throws IOException {
if (fileChannel.isOpen()) {
save(); save();
}
synchronized (fileChannel) { synchronized (fileChannel) {
try { try {
lock.close(); lock.close();