Permalink
Browse files

Update README.md

  • Loading branch information...
1 parent 3e814a0 commit ccfea587ceb077d42746fae6c7214fb1d1788ec9 @soldair committed Feb 18, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 README.md
View
@@ -19,7 +19,9 @@ repipe(s,function(err,last,done){
if(err && err.message != "unexpected disconnection") return done(err);
// its the first stream or the stream was cut off before it emitted the end event
// start the new read stream from where it left off..
- done(false,multilevel.createReadStream({start:last.key+"\x00"});
+ var key;
+ if(last) key = last.key+"\x00";
+ done(false,multilevel.createReadStream({start:key});
});
s.on('data',function(data){

0 comments on commit ccfea58

Please sign in to comment.