Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornkavian <nas@sixclovers.com>2021-07-10 01:00:12 +0300
committerGitHub <noreply@github.com>2021-07-10 01:00:12 +0300
commit5c79c0a01424087e4c37776d86ef745191504df4 (patch)
tree5debb550e0e14cbfafcd3cf9ae59b9e79507d290 /lib
parenta87ebbe8b86cd73b8d5b4402501595b358217e79 (diff)
feat: support adding paused torrents. (#2004)
* Support adding paused torrents. * chore: use arrows, because semantic Co-authored-by: Nas Kavian <> Co-authored-by: Diego Rodríguez Baquero <github@diegorbaquero.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/torrent.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/torrent.js b/lib/torrent.js
index 8b96e14..f60d459 100644
--- a/lib/torrent.js
+++ b/lib/torrent.js
@@ -97,7 +97,7 @@ class Torrent extends EventEmitter {
this.ready = false
this.destroyed = false
- this.paused = false
+ this.paused = opts.paused || false
this.done = false
this.metadata = null