Skip to content

Commit

Permalink
Fixes #158 - Scheduled interval trigger stops firing after the contro…
Browse files Browse the repository at this point in the history
…ller has been manually stopped and restarted
  • Loading branch information
ryannewington committed Dec 18, 2018
1 parent 155a6b5 commit b26cf73
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/Lithnet.Miiserver.AutoSync/MAInterface/MAController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,6 @@ private void Init()
this.LogInfo("Starting action processing queue");
this.UpdateExecutionStatus(ControllerState.Idle, null, null);

// ReSharper disable once InconsistentlySynchronizedField
foreach (ExecutionParameters action in this.pendingActions.GetConsumingEnumerable(this.controllerCancellationTokenSource.Token))
{
this.controllerCancellationTokenSource.Token.ThrowIfCancellationRequested();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ private void Notify(IAsyncResult result)

if (DateTime.Now < this.nextTriggerAfter)
{
this.Trace("Discarding change because next trigger time has not been reached");
//this.Trace("Discarding change because next trigger time has not been reached");
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public override void Start(string managementAgentName)
return;
}

this.HasFired = false;
this.SetupTimer();
}

Expand Down

0 comments on commit b26cf73

Please sign in to comment.