Method: BetterCap::Discovery::Thread#stop

Defined in:
lib/bettercap/discovery/thread.rb

#stopObject

Stop the active network discovery thread.



31
32
33
34
35
36
37
38
39
40
# File 'lib/bettercap/discovery/thread.rb', line 31

def stop
  @running = false
  if @thread != nil
    Logger.info( 'Stopping network discovery thread ...' ) unless @ctx.options.core.arpcache
    begin
      @thread.exit
    rescue
    end
  end
end