Permalink
Browse files

FDDriverInstance: Handle EOF correctly.

  • Loading branch information...
1 parent c98cfa9 commit 3e10a48ec04e646a9af6b08aea37bcde73d77912 Erik Søe Sørensen committed Nov 2, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/main/java/erjang/driver/FDDriverInstance.java
@@ -134,7 +134,8 @@ public void run() {
howmany = ins.read(buffer);
finish(howmany, buffer);
} catch (EOFException e) {
- finish(-1, buffer);
+ finish(-1, buffer);
+ return;
}
} catch (IOException e) {

0 comments on commit 3e10a48

Please sign in to comment.