removed check for writeable

caused broken unit tests
This commit is contained in:
Ryan Wilson 2014-06-20 13:23:09 -07:00
parent b12200fabc
commit 7d50b4aeff

View File

@ -48,13 +48,13 @@ BaseRollingFileStream.prototype._write = function(chunk, encoding, callback) {
function writeTheChunk() {
debug("writing the chunk to the underlying stream");
that.currentSize += chunk.length;
if(that.theStream.writeable) {
try {
that.theStream.write(chunk, encoding, callback);
}
catch (err){
callback();
}
console.log(that.theStream);
try {
that.theStream.write(chunk, encoding, callback);
}
catch (err){
debug(err);
callback();
}
}