lib/rufus/sc/jobs.rb in rufus-scheduler-2.0.14 vs lib/rufus/sc/jobs.rb in rufus-scheduler-2.0.15
- old
+ new
@@ -175,12 +175,14 @@
#
# Note that #trigger_job is protected, hence the #send
# (Only jobs know about this method of the scheduler)
job_thread = Thread.current
+
job_thread[
"rufus_scheduler__trigger_thread__#{@scheduler.object_id}"
- ] = true
+ ] = self
+
@last_job_thread = job_thread
begin
trigger_block