Permalink
Browse files

Merge pull request #12 from mattcg/patch-1

Close file handle when user wants to stop reading
  • Loading branch information...
2 parents 7dae91b + 58283de commit 5abde399de04048df7edc9582980f83bc3103bad @nickewing committed Jan 11, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/line_reader.js
View
@@ -138,6 +138,7 @@
newRead();
} else {
finish();
+ reader.close();
}
}
@@ -152,6 +153,7 @@
newRead();
} else {
finish();
+ reader.close();
}
}
});

0 comments on commit 5abde39

Please sign in to comment.