aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/webtorrent.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/webtorrent.ts')
-rw-r--r--server/helpers/webtorrent.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/webtorrent.ts b/server/helpers/webtorrent.ts
index 089954e32..9c5df2083 100644
--- a/server/helpers/webtorrent.ts
+++ b/server/helpers/webtorrent.ts
@@ -149,7 +149,7 @@ function safeWebtorrentDestroy (
149 downloadedFile?: { directoryPath: string, filepath: string }, 149 downloadedFile?: { directoryPath: string, filepath: string },
150 torrentName?: string 150 torrentName?: string
151) { 151) {
152 return new Promise(res => { 152 return new Promise<void>(res => {
153 webtorrent.destroy(err => { 153 webtorrent.destroy(err => {
154 // Delete torrent file 154 // Delete torrent file
155 if (torrentName) { 155 if (torrentName) {