Fixed sab title issue

Added profiling to OpenSharedconnection
This commit is contained in:
kay.one 2011-06-21 20:38:46 -07:00
commit 5fb2c61c77
4 changed files with 27 additions and 18 deletions

View file

@ -34,18 +34,21 @@ namespace NzbDrone
#if DEBUG
Attach();
#endif
try
if (Environment.UserInteractive)
{
Logger.Info("Starting default browser. {0}",IISController.AppUrl);
Process.Start(IISController.AppUrl);
}
catch(Exception e)
{
Logger.ErrorException("Failed to open URL in default browser.", e);
}
while (true)
{
Console.ReadLine();
try
{
Logger.Info("Starting default browser. {0}", IISController.AppUrl);
Process.Start(IISController.AppUrl);
}
catch (Exception e)
{
Logger.ErrorException("Failed to open URL in default browser.", e);
}
while (true)
{
Console.ReadLine();
}
}
}
catch (Exception e)