Skip to content

Commit

Permalink
Passing cancellation token into the ScriptHost start call.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocav committed Mar 16, 2016
1 parent 4dd6288 commit 5f90338
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace Microsoft.Azure.WebJobs.Script.Description
{
/// <summary>
/// Lazily loads the function value, guaranteeing single execution, and exposing
/// Lazily loads the function value, guaranteeing single execution, and exposing
/// a <see cref="Task{MethodInfo}"/> value that completes when the provided
/// factory completes the function creation.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/WebJobs.Script/Host/ScriptHostManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public ScriptHost Instance
// write any function initialization errors to the log file
LogErrors(newInstance);

newInstance.Start();
newInstance.StartAsync(cancellationToken).Wait();
lock (_liveInstances)
{
_liveInstances.Add(newInstance);
Expand Down

0 comments on commit 5f90338

Please sign in to comment.