diff options
author | Chocobozzz <me@florianbigard.com> | 2021-02-03 09:33:05 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-02-03 09:45:08 +0100 |
commit | ba5a8d89bbf049e4afc41543bcc072cccdb02669 (patch) | |
tree | 6cc6b2dca17745cc0824c7ad4515f3bc4883fa4a /server/helpers/webtorrent.ts | |
parent | 29f148a61381727a432c22a71c7a2b7cc23d9c9e (diff) | |
download | PeerTube-ba5a8d89bbf049e4afc41543bcc072cccdb02669.tar.gz PeerTube-ba5a8d89bbf049e4afc41543bcc072cccdb02669.tar.zst PeerTube-ba5a8d89bbf049e4afc41543bcc072cccdb02669.zip |
Update server dependencies
Diffstat (limited to 'server/helpers/webtorrent.ts')
-rw-r--r-- | server/helpers/webtorrent.ts | 2 |
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) { |