|
|
|
|
@ -154,10 +154,6 @@ public static class HelperMethods
|
|
|
|
|
/// <returns><see langword="true"/> if we have internet, <see langword="false"/> if not.</returns>
|
|
|
|
|
public static bool IsConnectedToInternet()
|
|
|
|
|
{
|
|
|
|
|
// TODO: For some reason, using the below approach creates zombie process when checking for Xdelta
|
|
|
|
|
// I have no idea why, but I also can't be bothered to troubleshoot why that is the case right now.
|
|
|
|
|
// Until someone figures out why that is the case, and makes the below approach not create zombie processes
|
|
|
|
|
// it will stay commented out.
|
|
|
|
|
log.Info("Checking internet connection...");
|
|
|
|
|
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://github.com");
|
|
|
|
|
try
|
|
|
|
|
@ -172,6 +168,10 @@ public static class HelperMethods
|
|
|
|
|
log.Info("Internet connection established!");
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
|
|
// TODO: For some reason, using the below approach creates zombie process when checking for Xdelta
|
|
|
|
|
// I have no idea why, but I also can't be bothered to troubleshoot why that is the case right now.
|
|
|
|
|
// Until someone figures out why that is the case, and makes the below approach not create zombie processes
|
|
|
|
|
// it will stay commented out and the slower above approach will be used instead.
|
|
|
|
|
/*log.Info("Checking internet connection...");
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
|