aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authordiva2009-01-31 01:59:05 +0000
committerdiva2009-01-31 01:59:05 +0000
commit4db9373b29136ec90ca8505583dcb623440a377c (patch)
tree48a54d66bd8162ad5ae56684a781221dda7677d8 /OpenSim
parentFixes mantis #3061. Thanks Hallow Palmer for diagnosing the issue so well. I ... (diff)
downloadopensim-SC-4db9373b29136ec90ca8505583dcb623440a377c.zip
opensim-SC-4db9373b29136ec90ca8505583dcb623440a377c.tar.gz
opensim-SC-4db9373b29136ec90ca8505583dcb623440a377c.tar.bz2
opensim-SC-4db9373b29136ec90ca8505583dcb623440a377c.tar.xz
Oops. Forgot a try-catch on the last commit.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Framework/HGNetworkServersInfo.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Framework/HGNetworkServersInfo.cs b/OpenSim/Framework/HGNetworkServersInfo.cs
index 4e7ed95..227200e 100644
--- a/OpenSim/Framework/HGNetworkServersInfo.cs
+++ b/OpenSim/Framework/HGNetworkServersInfo.cs
@@ -83,8 +83,12 @@ namespace OpenSim.Framework
83 public static string ServerURI(string uri) 83 public static string ServerURI(string uri)
84 { 84 {
85 // Get rid of eventual slashes at the end 85 // Get rid of eventual slashes at the end
86 if (uri.EndsWith("/")) 86 try
87 uri = uri.Substring(0, uri.Length - 1); 87 {
88 if (uri.EndsWith("/"))
89 uri = uri.Substring(0, uri.Length - 1);
90 }
91 catch { }
88 92
89 IPAddress ipaddr1 = null; 93 IPAddress ipaddr1 = null;
90 string port1 = ""; 94 string port1 = "";