diff options
author | fcolin | 2007-02-01 09:52:01 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 09:52:01 +0000 |
commit | 0b3332e904174414c5775dd545e78b691ab92ee1 (patch) | |
tree | 256e6a057d4074e241ed841b8d4ac9e7010db829 /CSharp/Ivy | |
parent | 2843db30512d3c6aea23a16929fb8f1e8611462a (diff) | |
download | ivy-csharp-0b3332e904174414c5775dd545e78b691ab92ee1.zip ivy-csharp-0b3332e904174414c5775dd545e78b691ab92ee1.tar.gz ivy-csharp-0b3332e904174414c5775dd545e78b691ab92ee1.tar.bz2 ivy-csharp-0b3332e904174414c5775dd545e78b691ab92ee1.tar.xz |
Utilisateur : Fcolin Date : 13/02/06 Heure : 15:48 Archivé dans $/CSharp/Ivy/IvyPPC Commentaire: (vss 23)
Diffstat (limited to 'CSharp/Ivy')
-rw-r--r-- | CSharp/Ivy/Ivy/IvyWatcher.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CSharp/Ivy/Ivy/IvyWatcher.cs b/CSharp/Ivy/Ivy/IvyWatcher.cs index 0db24aa..b164260 100644 --- a/CSharp/Ivy/Ivy/IvyWatcher.cs +++ b/CSharp/Ivy/Ivy/IvyWatcher.cs @@ -196,6 +196,7 @@ namespace IvyBus internal static int getPort(string net)
{
+ if (net == null) return Ivy.DEFAULT_PORT;
int sep_index = net.LastIndexOf(":");
int port = (sep_index == - 1)?Ivy.DEFAULT_PORT:Int32.Parse(net.Substring(sep_index + 1));
return port;
|