dotnet-labs / ServiceWorkerCronJob

Schedule Cron Jobs using HostedService in ASP.NET Core
MIT License
265 stars 71 forks source link

Return directly after completing the recursive call. #16

Closed yrz1994 closed 9 months ago

yrz1994 commented 9 months ago

When delay.TotalMilliseconds is a negative value, after completing the recursive call to ScheduleJob, if not returning, the negative value will still be passed to the constructor of System.Timers.Timer, thereby causing an exception.