Skip to content

Commit b26cf73

Browse files
committed
Fixes #158 - Scheduled interval trigger stops firing after the controller has been manually stopped and restarted
1 parent 155a6b5 commit b26cf73

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Lithnet.Miiserver.AutoSync/MAInterface/MAController.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1440,7 +1440,6 @@ private void Init()
14401440
this.LogInfo("Starting action processing queue");
14411441
this.UpdateExecutionStatus(ControllerState.Idle, null, null);
14421442

1443-
// ReSharper disable once InconsistentlySynchronizedField
14441443
foreach (ExecutionParameters action in this.pendingActions.GetConsumingEnumerable(this.controllerCancellationTokenSource.Token))
14451444
{
14461445
this.controllerCancellationTokenSource.Token.ThrowIfCancellationRequested();

src/Lithnet.Miiserver.AutoSync/Triggers/ActiveDirectoryChangeTrigger.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ private void Notify(IAsyncResult result)
177177

178178
if (DateTime.Now < this.nextTriggerAfter)
179179
{
180-
this.Trace("Discarding change because next trigger time has not been reached");
180+
//this.Trace("Discarding change because next trigger time has not been reached");
181181
return;
182182
}
183183

src/Lithnet.Miiserver.AutoSync/Triggers/ScheduledExecutionTrigger.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ public override void Start(string managementAgentName)
100100
return;
101101
}
102102

103+
this.HasFired = false;
103104
this.SetupTimer();
104105
}
105106

0 commit comments

Comments
 (0)