Skip to content

Commit

Permalink
Move Engine#run up.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed May 28, 2024
1 parent e7d29ca commit 8db38dd
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions lib/ronin/recon/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,19 @@ def start(task=Async::Task.current)
end
end

#
# The main recon engine event loop.
#
# @api private
#
def run
until (@value_status.empty? && @output_queue.empty?)
process(@output_queue.dequeue)
end

shutdown!
end

#
# Adds a worker class to the engine.
#
Expand Down Expand Up @@ -422,19 +435,6 @@ def enqueue_value(value)
enqueue_mesg(Message::Value.new(value))
end

#
# The main recon engine event loop.
#
# @api private
#
def run
until (@value_status.empty? && @output_queue.empty?)
process(@output_queue.dequeue)
end

shutdown!
end

#
# Processes a message.
#
Expand Down

0 comments on commit 8db38dd

Please sign in to comment.