diff options
Oops. Forgot a try-catch on the last commit.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/HGNetworkServersInfo.cs | 8 |
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 = ""; |