Skip to content

Commit

Permalink
fix: prevent dismissed transfers from being stored in memory indefini…
Browse files Browse the repository at this point in the history
…tely
  • Loading branch information
mat-sz committed May 15, 2024
1 parent e92c40d commit 365f387
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/src/stores/Transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,10 @@ export class Transfer {
}

stop() {
if (this.blobUrl) {
URL.revokeObjectURL(this.blobUrl);
}

if (this.peerConnection) {
try {
this.peerConnection.close();
Expand Down

0 comments on commit 365f387

Please sign in to comment.