mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-25 18:14:27 +01:00
Add another missing close()
This commit is contained in:
@@ -1372,13 +1372,17 @@ class Manager implements Signal {
|
||||
|
||||
if (groupsFile.exists() && groupsFile.length() > 0) {
|
||||
FileInputStream contactsFileStream = new FileInputStream(groupsFile);
|
||||
SignalServiceAttachmentStream attachmentStream = SignalServiceAttachment.newStreamBuilder()
|
||||
.withStream(contactsFileStream)
|
||||
.withContentType("application/octet-stream")
|
||||
.withLength(groupsFile.length())
|
||||
.build();
|
||||
try {
|
||||
SignalServiceAttachmentStream attachmentStream = SignalServiceAttachment.newStreamBuilder()
|
||||
.withStream(contactsFileStream)
|
||||
.withContentType("application/octet-stream")
|
||||
.withLength(groupsFile.length())
|
||||
.build();
|
||||
|
||||
sendSyncMessage(SignalServiceSyncMessage.forGroups(attachmentStream));
|
||||
sendSyncMessage(SignalServiceSyncMessage.forGroups(attachmentStream));
|
||||
} finally {
|
||||
contactsFileStream.close();
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
groupsFile.delete();
|
||||
|
||||
Reference in New Issue
Block a user