Skip to content

Commit ba9408b

Browse files
committed
Adding cancellation token WaitHandle to the list of handles we wait for to break out of the run loop.
1 parent 16ab378 commit ba9408b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/WebJobs.Script/Host/ScriptHostManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ public ScriptHost Instance
9999
// restarts are only happening on a single thread.
100100
WaitHandle.WaitAny(new WaitHandle[]
101101
{
102+
cancellationToken.WaitHandle,
102103
newInstance.RestartEvent,
103104
_stopEvent
104105
});

0 commit comments

Comments
 (0)