diff options
author | fcolin | 2007-02-01 09:50:11 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 09:50:11 +0000 |
commit | 1b4839ae1e4072ed7f208c10a9daba47c818e714 (patch) | |
tree | 9365c720733e4c85f842f11a16d9c7068bd13543 | |
parent | dd2dc780bb48d5358d4fe769dd90eb0d3b1cab99 (diff) | |
download | ivy-csharp-1b4839ae1e4072ed7f208c10a9daba47c818e714.zip ivy-csharp-1b4839ae1e4072ed7f208c10a9daba47c818e714.tar.gz ivy-csharp-1b4839ae1e4072ed7f208c10a9daba47c818e714.tar.bz2 ivy-csharp-1b4839ae1e4072ed7f208c10a9daba47c818e714.tar.xz |
Utilisateur : Fcolin Date : 10/02/06 Heure : 15:31 Archivé dans $/CSharp/Ivy/Ivy Commentaire: endof stream throw exception (vss 10)
-rw-r--r-- | CSharp/Ivy/Ivy/IvyTCPStreamV3.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/CSharp/Ivy/Ivy/IvyTCPStreamV3.cs b/CSharp/Ivy/Ivy/IvyTCPStreamV3.cs index 9d6d828..ab1de39 100644 --- a/CSharp/Ivy/Ivy/IvyTCPStreamV3.cs +++ b/CSharp/Ivy/Ivy/IvyTCPStreamV3.cs @@ -135,7 +135,8 @@ namespace IvyBus do
{
read = input.Read();
- if (read < 0) break;
+ if (read < 0)
+ throw new EndOfStreamException();
digit = (char)read;
if (Char.IsDigit(digit))
ret = (ushort)(ret * 10 + (digit - 0x30));
@@ -151,7 +152,8 @@ namespace IvyBus do
{
read = input.Read();
- if (read < 0) break;
+ if (read < 0)
+ throw new EndOfStreamException();
car = (char)read;
if (car != sep ) str.Append(car);
} while (car != sep);
|