summaryrefslogtreecommitdiff
path: root/CSharp/Ivy/IvyPPC/IvyWatcher.cs
diff options
context:
space:
mode:
authorfcolin2007-02-01 10:03:50 +0000
committerfcolin2007-02-01 10:03:50 +0000
commit55aa8d6be7423d9d496d9eacfc0ad47215a300ce (patch)
treecafb78538c911e8b8c91fb096848f243c2519aa4 /CSharp/Ivy/IvyPPC/IvyWatcher.cs
parent2a18d2c886bd31ffc52cfc7f79e85a2d96037936 (diff)
downloadivy-csharp-55aa8d6be7423d9d496d9eacfc0ad47215a300ce.zip
ivy-csharp-55aa8d6be7423d9d496d9eacfc0ad47215a300ce.tar.gz
ivy-csharp-55aa8d6be7423d9d496d9eacfc0ad47215a300ce.tar.bz2
ivy-csharp-55aa8d6be7423d9d496d9eacfc0ad47215a300ce.tar.xz
Utilisateur : Fcolin Date : 13/02/06 Heure : 15:48 Archivé dans $/CSharp/Ivy/IvyPPC Commentaire: (vss 23)
Diffstat (limited to 'CSharp/Ivy/IvyPPC/IvyWatcher.cs')
-rw-r--r--CSharp/Ivy/IvyPPC/IvyWatcher.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyWatcher.cs b/CSharp/Ivy/IvyPPC/IvyWatcher.cs
index 0db24aa..b164260 100644
--- a/CSharp/Ivy/IvyPPC/IvyWatcher.cs
+++ b/CSharp/Ivy/IvyPPC/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;