diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2014-03-03 11:02:46 +0400 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2014-03-03 11:02:46 +0400 |
commit | 07013a122d6ea7e4ee066998467993315fd39e49 (patch) | |
tree | dd58cc538c1e262c61691cf9200d77f40a0e203f /lib/torrent.js | |
parent | 8375be8c1ceb5cadf3f0c67eb6150e2bf9860f67 (diff) |
torrent successfully fetched over the net!
Diffstat (limited to 'lib/torrent.js')
-rw-r--r-- | lib/torrent.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/torrent.js b/lib/torrent.js index ac7d809..3347e04 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -272,6 +272,7 @@ Torrent.prototype._onMetadata = function () { self.storage.on('piece', self._onStoragePiece.bind(self)) self.storage.on('file', function (file) { console.log('FILE', file.name) + self.file = file.buffer }) self.storage.on('done', function () { console.log('done with torrent!') |