Skip to content

Commit 2d06068

Browse files
authored
Return task, successful or not (#10597)
1 parent bfa7535 commit 2d06068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WebJobs.Script/Host/FunctionMetadataManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ private void AddMetadataFromCustomProviders(IEnumerable<IFunctionProvider> funct
244244

245245
var completedTask = Task.WhenAny(getFunctionMetadataFromProviderTask, delayTask).ContinueWith(t =>
246246
{
247-
if (t.Result == getFunctionMetadataFromProviderTask && getFunctionMetadataFromProviderTask.IsCompletedSuccessfully)
247+
if (t.Result == getFunctionMetadataFromProviderTask)
248248
{
249249
return getFunctionMetadataFromProviderTask.Result;
250250
}

0 commit comments

Comments
 (0)