Skip to content

Commit

Permalink
Always destroy fileStream after successful/failed upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Lezek123 committed Nov 21, 2024
1 parent f76e84d commit 53fbddf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions storage-node/src/services/s3/AwsConnectionHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,8 @@ export class AwsConnectionHandler implements IConnectionHandler<StorageClass> {
try {
const resp = await this.client.send(command)
return resp
} catch (e) {
} finally {
fileStream.destroy()
throw e
}
}

Expand Down

0 comments on commit 53fbddf

Please sign in to comment.