Comparing version 3.0.2 to 3.0.3
10
index.js
@@ -240,3 +240,6 @@ const WebTorrent = require('webtorrent') | ||
this.midTorrent(id, { path: folderPath, destroyStoreOnDestroy: false }) | ||
]) | ||
]).catch(err => { | ||
this.webtorrent.remove(id, { destroyStore: false }) | ||
throw err | ||
}) | ||
const mainPath = path.join(checkTorrent.path, checkTorrent.name) | ||
@@ -305,3 +308,6 @@ checkTorrent.folder = folderPath | ||
this.midTorrent(checkProperty.infohash, { path: dataPath, destroyStoreOnDestroy: false }) | ||
]) | ||
]).catch(err => { | ||
this.webtorrent.remove(checkProperty.infohash, { destroyStore: false }) | ||
throw err | ||
}) | ||
// don't overwrite the torrent's infohash even though they will both be the same | ||
@@ -308,0 +314,0 @@ for (const prop in checkProperty) { |
{ | ||
"name": "torrentz", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25745
554