Fix exception thrown in NetworkMonitor thread that can cause the UI to stop polling service for updates

This commit is contained in:
Grant Limberg 2017-03-08 14:54:58 -08:00
parent c8e66a2b45
commit ed4f84cc57

View File

@ -102,6 +102,11 @@ namespace WinUI
private void apiNetworkCallback(List<ZeroTierNetwork> networks)
{
if (networks == null)
{
return;
}
lock (_knownNetworks)
{
_knownNetworks = _knownNetworks.Union(networks, new NetworkEqualityComparer()).ToList();