mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-19 23:53:53 +00:00
Fixed falling out of the network monitor thread if the ZeroTier service isn't running on Windows
This commit is contained in:
@ -188,7 +188,8 @@ namespace WinUI
|
||||
}
|
||||
catch (System.Net.WebException e)
|
||||
{
|
||||
if (((HttpWebResponse)e.Response).StatusCode == HttpStatusCode.Unauthorized)
|
||||
HttpWebResponse res = (HttpWebResponse)e.Response;
|
||||
if (res != null && res.StatusCode == HttpStatusCode.Unauthorized)
|
||||
{
|
||||
APIHandler.initHandler(true);
|
||||
}
|
||||
@ -251,7 +252,8 @@ namespace WinUI
|
||||
}
|
||||
catch (System.Net.WebException e)
|
||||
{
|
||||
if (((HttpWebResponse)e.Response).StatusCode == HttpStatusCode.Unauthorized)
|
||||
HttpWebResponse res = (HttpWebResponse)e.Response;
|
||||
if (res != null && res.StatusCode == HttpStatusCode.Unauthorized)
|
||||
{
|
||||
APIHandler.initHandler(true);
|
||||
}
|
||||
@ -310,7 +312,8 @@ namespace WinUI
|
||||
}
|
||||
catch (System.Net.WebException e)
|
||||
{
|
||||
if (((HttpWebResponse)e.Response).StatusCode == HttpStatusCode.Unauthorized)
|
||||
HttpWebResponse res = (HttpWebResponse)e.Response;
|
||||
if (res != null && res.StatusCode == HttpStatusCode.Unauthorized)
|
||||
{
|
||||
APIHandler.initHandler(true);
|
||||
}
|
||||
@ -348,7 +351,8 @@ namespace WinUI
|
||||
}
|
||||
catch (System.Net.WebException e)
|
||||
{
|
||||
if (((HttpWebResponse)e.Response).StatusCode == HttpStatusCode.Unauthorized)
|
||||
HttpWebResponse res = (HttpWebResponse)e.Response;
|
||||
if (res != null && res.StatusCode == HttpStatusCode.Unauthorized)
|
||||
{
|
||||
APIHandler.initHandler(true);
|
||||
}
|
||||
@ -405,7 +409,8 @@ namespace WinUI
|
||||
}
|
||||
catch (System.Net.WebException e)
|
||||
{
|
||||
if (((HttpWebResponse)e.Response).StatusCode == HttpStatusCode.Unauthorized)
|
||||
HttpWebResponse res = (HttpWebResponse)e.Response;
|
||||
if (res != null && res.StatusCode == HttpStatusCode.Unauthorized)
|
||||
{
|
||||
APIHandler.initHandler(true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user