mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-19 04:57:53 +00:00
Fix exception thrown in NetworkMonitor thread that can cause the UI to stop polling service for updates
This commit is contained in:
parent
c8e66a2b45
commit
ed4f84cc57
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user