Skip to content

Commit

Permalink
Avoid explicitly calling class methods when in class scope
Browse files Browse the repository at this point in the history
  • Loading branch information
sodabrew committed Apr 28, 2018
1 parent 366dc45 commit 31fec27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/eventmachine.rb
Expand Up @@ -986,7 +986,7 @@ def self.run_deferred_callbacks
# do some work during the next_tick. The only mechanism we have from the
# ruby side is next_tick itself, although ideally, we'd just drop a byte
# on the loopback descriptor.
EM.next_tick {} if exception_raised
next_tick {} if exception_raised
end
end
end
Expand Down Expand Up @@ -1081,7 +1081,7 @@ def self.spawn_threadpool
raise error unless eback
@resultqueue << [error, eback]
end
EventMachine.signal_loopbreak
signal_loopbreak
end
end
@threadpool << thread
Expand Down Expand Up @@ -1515,7 +1515,7 @@ def self.event_callback conn_binding, opcode, data
else
if $! # Bubble user generated errors.
@wrapped_exception = $!
EM.stop
stop
else
raise ConnectionNotBound, "received ConnectionUnbound for an unknown signature: #{conn_binding}"
end
Expand Down

0 comments on commit 31fec27

Please sign in to comment.