Comparing version 5.1.1 to 5.1.2
@@ -26,3 +26,3 @@ var Stats = require('./stream-util').Stats; | ||
this.on('finish', function() { | ||
return stream._multiwriting ? s.once('_writeEmpty', stop) : stop(); | ||
return s._multiwriting ? s.once('_writeEmpty', stop) : stop(); | ||
function stop() { return source.stopWriting ? source.stopWriting(done) : done(); } | ||
@@ -38,3 +38,3 @@ function done(err) { | ||
this.on('unpipe', function() { | ||
return stream._multiwriting ? s.once('_writeEmpty', stop) : stop(); | ||
return s._multiwriting ? s.once('_writeEmpty', stop) : stop(); | ||
function stop() { return source.stopWriting ? source.stopWriting(done) : done(); } | ||
@@ -41,0 +41,0 @@ function done(err) { if (err) s.emit('error', err); } |
{ | ||
"name": "tilelive", | ||
"version": "5.1.1", | ||
"version": "5.1.2", | ||
"main": "./lib/tilelive.js", | ||
@@ -5,0 +5,0 @@ "description": "API for various map tile backends", |
48054