Skip to content

Commit

Permalink
Add back the logic to clear the files after use in MessageAction
Browse files Browse the repository at this point in the history
  • Loading branch information
MinnDevelopment committed Jul 19, 2022
1 parent 66ec4dc commit bef374a
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -528,6 +528,8 @@ protected RequestBody asMultipart()
{
MultipartBody.Builder body = AttachedFile.createMultipartBody(files, null);
body.addFormDataPart("payload_json", getJSON().toString());
// clear remaining resources, they will be closed after being sent
files.clear();
return body.build();
}

Expand Down

0 comments on commit bef374a

Please sign in to comment.