Add another missing close()
This commit is contained in:
parent
5b839bbae0
commit
eb0860d350
@ -1372,6 +1372,7 @@ class Manager implements Signal {
|
|||||||
|
|
||||||
if (groupsFile.exists() && groupsFile.length() > 0) {
|
if (groupsFile.exists() && groupsFile.length() > 0) {
|
||||||
FileInputStream contactsFileStream = new FileInputStream(groupsFile);
|
FileInputStream contactsFileStream = new FileInputStream(groupsFile);
|
||||||
|
try {
|
||||||
SignalServiceAttachmentStream attachmentStream = SignalServiceAttachment.newStreamBuilder()
|
SignalServiceAttachmentStream attachmentStream = SignalServiceAttachment.newStreamBuilder()
|
||||||
.withStream(contactsFileStream)
|
.withStream(contactsFileStream)
|
||||||
.withContentType("application/octet-stream")
|
.withContentType("application/octet-stream")
|
||||||
@ -1379,6 +1380,9 @@ class Manager implements Signal {
|
|||||||
.build();
|
.build();
|
||||||
|
|
||||||
sendSyncMessage(SignalServiceSyncMessage.forGroups(attachmentStream));
|
sendSyncMessage(SignalServiceSyncMessage.forGroups(attachmentStream));
|
||||||
|
} finally {
|
||||||
|
contactsFileStream.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
groupsFile.delete();
|
groupsFile.delete();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user