Oops. Forgot a try-catch on the last commit.

0.6.3-post-fixes
diva 2009-01-31 01:59:05 +00:00
parent 26f99de45d
commit 4db9373b29
1 changed files with 6 additions and 2 deletions

View File

@ -83,8 +83,12 @@ namespace OpenSim.Framework
public static string ServerURI(string uri)
{
// Get rid of eventual slashes at the end
if (uri.EndsWith("/"))
uri = uri.Substring(0, uri.Length - 1);
try
{
if (uri.EndsWith("/"))
uri = uri.Substring(0, uri.Length - 1);
}
catch { }
IPAddress ipaddr1 = null;
string port1 = "";