lib/rufus/scheduler.rb in rufus-scheduler-3.1.6 vs lib/rufus/scheduler.rb in rufus-scheduler-3.1.7
- old
+ new
@@ -37,11 +37,11 @@
require 'rufus/scheduler/jobs'
require 'rufus/scheduler/cronline'
require 'rufus/scheduler/job_array'
require 'rufus/scheduler/locks'
- VERSION = '3.1.6'
+ VERSION = '3.1.7'
#
# A common error class for rufus-scheduler
#
class Error < StandardError; end
@@ -385,10 +385,10 @@
#
def scheduled?(job_or_job_id)
job, job_id = fetch(job_or_job_id)
- !! (job && job.next_time != nil)
+ !! (job && job.unscheduled_at.nil? && job.next_time != nil)
end
# Lists all the threads associated with this scheduler.
#
def threads