Permalink
Browse files

Connection#error? is not supported by EM's jruby reactor implementation

  • Loading branch information...
1 parent 238cbac commit 0105b3aa804afe48b9a234a47a89bdd74ad598c0 @nikitug nikitug committed Mar 25, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/smpp/base.rb
View
@@ -69,7 +69,7 @@ def post_init
def start_enquire_link_timer(delay_secs)
logger.info "Starting enquire link timer (with #{delay_secs}s interval)"
EventMachine::PeriodicTimer.new(delay_secs) do
- if error?
+ if !defined?(JRUBY_VERSION) && error?
logger.warn "Link timer: Connection is in error state. Disconnecting."
close_connection
elsif unbound?

0 comments on commit 0105b3a

Please sign in to comment.