lib/arachni/rpc/em/em.rb in arachni-rpc-em-0.1.2 vs lib/arachni/rpc/em/em.rb in arachni-rpc-em-0.1.3dev1
- old
+ new
@@ -47,10 +47,10 @@
#
def ensure_em_running
if !::EM::reactor_running?
Thread.new do
- ::EM::run do
+ ::EM.run do
::EM.error_handler do |e|
$stderr.puts "Exception raised during event loop: " +
"#{e.message} (#{e.class})\n#{(e.backtrace ||
[])[0..5].join("\n")}"
end