Skip to content

Commit 7a99775

Browse files
authored
properly canceling StartupOperation (#11318)
1 parent 7b02f61 commit 7a99775

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WebJobs.Script.WebHost/WebJobsScriptHostService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) .NET Foundation. All rights reserved.
1+
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the MIT License. See License.txt in the project root for license information.
33

44
using System;
@@ -317,7 +317,7 @@ private async Task StartHostAsync(CancellationToken cancellationToken, int attem
317317
}
318318
finally
319319
{
320-
activeOperation.Dispose();
320+
EndStartupOperation(activeOperation);
321321
_hostStartSemaphore.Release();
322322
}
323323
}

0 commit comments

Comments
 (0)