summaryrefslogtreecommitdiff
path: root/CSharp/Ivy
diff options
context:
space:
mode:
authorfcolin2007-02-01 09:51:02 +0000
committerfcolin2007-02-01 09:51:02 +0000
commit553d990c824f0484047ab16ca6ddbb7926194b60 (patch)
treee2593520044c11310f20e9bd1b6c6338227d3d4f /CSharp/Ivy
parent2b94923ff4ba9867fdec24a7cc0d260cdffa90e3 (diff)
downloadivy-csharp-553d990c824f0484047ab16ca6ddbb7926194b60.zip
ivy-csharp-553d990c824f0484047ab16ca6ddbb7926194b60.tar.gz
ivy-csharp-553d990c824f0484047ab16ca6ddbb7926194b60.tar.bz2
ivy-csharp-553d990c824f0484047ab16ca6ddbb7926194b60.tar.xz
Utilisateur : Fcolin Date : 10/02/06 Heure : 15:34 Archivé dans $/CSharp/Ivy/Ivy Commentaire: (vss 5)
Diffstat (limited to 'CSharp/Ivy')
-rw-r--r--CSharp/Ivy/Ivy/IvyUDPStreamV3.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/CSharp/Ivy/Ivy/IvyUDPStreamV3.cs b/CSharp/Ivy/Ivy/IvyUDPStreamV3.cs
index b6f9b52..027789a 100644
--- a/CSharp/Ivy/Ivy/IvyUDPStreamV3.cs
+++ b/CSharp/Ivy/Ivy/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);