mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 13:03:45 +02: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
1 changed files with 5 additions and 0 deletions
|
@ -102,6 +102,11 @@ namespace WinUI
|
||||||
|
|
||||||
private void apiNetworkCallback(List<ZeroTierNetwork> networks)
|
private void apiNetworkCallback(List<ZeroTierNetwork> networks)
|
||||||
{
|
{
|
||||||
|
if (networks == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
lock (_knownNetworks)
|
lock (_knownNetworks)
|
||||||
{
|
{
|
||||||
_knownNetworks = _knownNetworks.Union(networks, new NetworkEqualityComparer()).ToList();
|
_knownNetworks = _knownNetworks.Union(networks, new NetworkEqualityComparer()).ToList();
|
||||||
|
|
Loading…
Add table
Reference in a new issue