Skip to content

Commit 18448fa

Browse files
Added catching for Timeout exception during agent configuration (#4928)
1 parent cb88778 commit 18448fa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Agent.Listener/Configuration/FeatureFlagProvider.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ public async Task<FeatureFlag> GetFeatureFlagWithCred(IHostContext context, stri
7171
Trace.Warning("Unable to retrieve feature flag with following exception: " + e.ToString());
7272
return new FeatureFlag(featureFlagName, "", "", "Off", "Off");
7373
}
74+
catch (TimeoutException e)
75+
{
76+
Trace.Warning("Unable to retrieve feature flag status due to timeout error: " + e.ToString());
77+
return new FeatureFlag(featureFlagName, "", "", "Off", "Off");
78+
}
7479
}
7580
}
7681
}

0 commit comments

Comments
 (0)