Method: Rex::Job#stop
- Defined in:
- lib/rex/job_container.rb
#stop ⇒ Object
Stops the job if it’s currently running and calls its cleanup procedure
56 57 58 59 60 61 62 63 |
# File 'lib/rex/job_container.rb', line 56 def stop if (self.job_thread) self.job_thread.kill self.job_thread = nil end clean_proc.call(ctx) if (clean_proc) end |