Permalink
Browse files

Only need to queue an empty message on the loopback if an exception o…

…ccurred.
  • Loading branch information...
1 parent 922b97b commit 43d63bc1dcb405d23b23c73095d64f5c10f5dba1 @raggi raggi committed Sep 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/eventmachine.rb
View
@@ -959,7 +959,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 {}
+ EM.next_tick {} if $!
end
end
end

0 comments on commit 43d63bc

Please sign in to comment.