return EOF rather than throw EoFException

This commit is contained in:
Greg Wilkins 2011-07-18 14:30:04 +10:00
parent f4255bdeef
commit d091003cfc
1 changed files with 4 additions and 2 deletions

View File

@ -185,15 +185,17 @@ public class ChannelEndPoint implements EndPoint
Log.ignore(xx); Log.ignore(xx);
} }
if (len>=0) if (len>0)
throw x; throw x;
Log.ignore(x);
len=-1;
} }
} }
else else
{ {
throw new IOException("Not Implemented"); throw new IOException("Not Implemented");
} }
return len; return len;
} }