Skip to content

Commit

Permalink
allow jruby users to opt out of the Java EventMachine reactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Orion Hickman committed Dec 19, 2012
1 parent 1aeb8a9 commit d6690e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/eventmachine.rb
@@ -1,8 +1,8 @@
if RUBY_PLATFORM =~ /java/
if defined?(EventMachine.library_type) and EventMachine.library_type == :pure_ruby
# assume 'em/pure_ruby' was loaded already
elsif RUBY_PLATFORM =~ /java/
require 'java'
require 'jeventmachine'
elsif defined?(EventMachine.library_type) and EventMachine.library_type == :pure_ruby
# assume 'em/pure_ruby' was loaded already
else
begin
require 'rubyeventmachine'
Expand Down

0 comments on commit d6690e0

Please sign in to comment.