diff options
author | fcolin | 2007-02-01 10:02:50 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 10:02:50 +0000 |
commit | 0abfdca67b16f9ccbdb3b9d60df8aa12688d2c48 (patch) | |
tree | db6af97301ca2a1548111cad915ace0313e33a73 | |
parent | 5f0c32d6b2595bfadd37b7dfb0f8be9fd98d7fe8 (diff) | |
download | ivy-csharp-0abfdca67b16f9ccbdb3b9d60df8aa12688d2c48.zip ivy-csharp-0abfdca67b16f9ccbdb3b9d60df8aa12688d2c48.tar.gz ivy-csharp-0abfdca67b16f9ccbdb3b9d60df8aa12688d2c48.tar.bz2 ivy-csharp-0abfdca67b16f9ccbdb3b9d60df8aa12688d2c48.tar.xz |
Utilisateur : Fcolin Date : 10/02/06 Heure : 15:34 Archivé dans $/CSharp/Ivy/Ivy Commentaire: (vss 5)
-rw-r--r-- | CSharp/Ivy/IvyPPC/IvyUDPStreamV3.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyUDPStreamV3.cs b/CSharp/Ivy/IvyPPC/IvyUDPStreamV3.cs index b6f9b52..027789a 100644 --- a/CSharp/Ivy/IvyPPC/IvyUDPStreamV3.cs +++ b/CSharp/Ivy/IvyPPC/IvyUDPStreamV3.cs @@ -36,8 +36,9 @@ namespace IvyBus do
{
read = input.Read();
- if (read < 0) break;
- digit = (char) read;
+ if (read < 0)
+ throw new EndOfStreamException();
+ digit = (char)read;
if ( Char.IsDigit(digit) )
ret = (ushort)(ret * 10 + (digit-0x30));
} while (Char.IsDigit(digit));
@@ -52,7 +53,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);
|