mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-09 16:24:53 +00:00
ensure wallet export file streams are always closed
This commit is contained in:
@@ -31,7 +31,6 @@ public class SpecterDesktop implements WalletImport, WalletExport {
|
||||
String json = gson.toJson(specterWallet);
|
||||
outputStream.write(json.getBytes(StandardCharsets.UTF_8));
|
||||
outputStream.flush();
|
||||
outputStream.close();
|
||||
} catch(Exception e) {
|
||||
log.error("Error exporting Specter Desktop wallet", e);
|
||||
throw new ExportException("Error exporting Specter Desktop wallet", e);
|
||||
|
||||
Reference in New Issue
Block a user