lib/rufus/scheduler/jobs.rb in rufus-scheduler-3.2.1 vs lib/rufus/scheduler/jobs.rb in rufus-scheduler-3.2.2

- old
+ new

@@ -51,10 +51,14 @@ # next trigger time # attr_accessor :next_time + # previous "next trigger time" + # + attr_accessor :previous_time + # anything with a #call(job[, timet]) method, # what gets actually triggered # attr_reader :callable @@ -115,9 +119,10 @@ alias job_id id def trigger(time) + @previous_time = @next_time set_next_time(time) return if ( opts[:overlap] == false && running?