Skip to content

Commit 78cb7f4

Browse files
committed
Update AutomaticRetryAttribute.cs
1 parent 323f4b5 commit 78cb7f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Hangfire.Core/AutomaticRetryAttribute.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public void OnStateApplied(ApplyStateContext context, IWriteOnlyTransaction tran
274274
/// <inheritdoc />
275275
public void OnStateUnapplied(ApplyStateContext context, IWriteOnlyTransaction transaction)
276276
{
277-
if (context.OldStateName == ScheduledState.StateName)
277+
if (ScheduledState.StateName.Equals(context.OldStateName, StringComparison.OrdinalIgnoreCase))
278278
{
279279
transaction.RemoveFromSet("retries", context.BackgroundJob.Id);
280280
}

0 commit comments

Comments
 (0)