Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BREAKING: Many fixes; all leaks fixed #762

Merged
merged 12 commits into from Apr 22, 2016

use simple-concat

  • Loading branch information
feross committed Apr 21, 2016
commit 1d51b5b428b791f4766c1d3cb49b5bc457a00656
@@ -1,5 +1,6 @@
module.exports = WebTorrent

var concat = require('simple-concat')
var createTorrent = require('create-torrent')
var debug = require('debug')('webtorrent')
var DHT = require('bittorrent-dht/client') // browser exclude
@@ -15,7 +16,6 @@ var Peer = require('simple-peer')
var speedometer = require('speedometer')
var zeroFill = require('zero-fill')

var concatStream = require('./lib/concat-stream')
var TCPPool = require('./lib/tcp-pool') // browser exclude
var Torrent = require('./lib/torrent')

@@ -274,7 +274,7 @@ WebTorrent.prototype.seed = function (input, opts, onseed) {
if (!Array.isArray(input)) input = [ input ]
parallel(input.map(function (item) {
return function (cb) {
if (isReadable(item)) concatStream(item, cb)
if (isReadable(item)) concat(item, cb)
else cb(null, item)
}
}), function (err, input) {

This file was deleted.

@@ -53,6 +53,7 @@
"render-media": "^2.0.0",
"run-parallel": "^1.0.0",
"run-parallel-limit": "^1.0.2",
"simple-concat": "^1.0.0",
"simple-get": "^2.0.0",
"simple-peer": "^6.0.0",
"simple-sha1": "^2.0.0",
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.