From 1a2f5979d2dbc6b8c7e4bef80500210e7b28c19b Mon Sep 17 00:00:00 2001 From: Dan Dumont Date: Thu, 8 Aug 2019 17:40:00 -0400 Subject: [PATCH 1/2] Notify caller of torrent creation in seed call --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 135fb93c..e0704b86 100644 --- a/index.js +++ b/index.js @@ -267,6 +267,7 @@ class WebTorrent extends EventEmitter { if (!opts.createdBy) opts.createdBy = `WebTorrent/${VERSION_STR}` const onTorrent = torrent => { + opts.onTorrent && opts.onTorrent(torrent); const tasks = [ cb => { // when a filesystem path is specified, files are already in the FS store From b335b0aa710d8823257e53bcf0baef38b9176278 Mon Sep 17 00:00:00 2001 From: Dan Dumont Date: Thu, 8 Aug 2019 17:42:48 -0400 Subject: [PATCH 2/2] I guess you don't like semicolons... --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index e0704b86..5f8c82a7 100644 --- a/index.js +++ b/index.js @@ -267,7 +267,7 @@ class WebTorrent extends EventEmitter { if (!opts.createdBy) opts.createdBy = `WebTorrent/${VERSION_STR}` const onTorrent = torrent => { - opts.onTorrent && opts.onTorrent(torrent); + opts.onTorrent && opts.onTorrent(torrent) const tasks = [ cb => { // when a filesystem path is specified, files are already in the FS store