We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a075630 commit 550309cCopy full SHA for 550309c
1 file changed
src/argo-shared-archive-list.ts
@@ -270,7 +270,9 @@ export class ArgoSharedArchiveList extends LitElement {
270
const record = this.sharedArchives.find((a) => a.id === id);
271
if (!record) return;
272
const torrent = client.get(record.magnetURI);
273
- if (torrent) torrent.destroy();
+ if (torrent) {
274
+ await new Promise<void>((resolve) => torrent.destroy(() => resolve()));
275
+ }
276
277
const all = this.sharedArchives.filter((a) => a.id !== id);
278
await setSharedArchives(all);
0 commit comments