aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs b/lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs
index 679c91d..d62c831 100644
--- a/lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs
+++ b/lib/VNLib.Plugins.Extensions.VNCache/src/VnCacheClient.cs
@@ -139,8 +139,16 @@ namespace VNLib.Plugins.Extensions.VNCache
while (true)
{
- //Wait for a discovery to complete
- await _index.WaitForDiscoveryAsync(exitToken);
+ try
+ {
+ //Wait for a discovery to complete
+ await _index.WaitForDiscoveryAsync(exitToken);
+ }
+ catch(CacheDiscoveryFailureException cdfe)
+ {
+ pluginLog.Error("Failed to discover nodes, will try again\n{err}", cdfe.Message);
+ //Continue
+ }
//Get the next node to connect to
CacheNodeAdvertisment? node = _index.GetNextNode();