Permalink
Browse files

defers_finished?: don't return false if there never was a deferred ac…

…tion
  • Loading branch information...
1 parent c36b0b0 commit fe2a94dd3af5be68aab0acf96ead8b2cbc8be3ab @paddor paddor committed Apr 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/eventmachine.rb
View
@@ -1048,7 +1048,7 @@ def self.spawn_threadpool
# callbacks have been fired.
#
def self.defers_finished?
- return false unless @all_threads_spawned
+ return false if @threadpool and !@all_threads_spawned
return false if @threadqueue and not @threadqueue.empty?
return false if @resultqueue and not @resultqueue.empty?
return false if @threadpool and @threadqueue.num_waiting != @threadpool.size

0 comments on commit fe2a94d

Please sign in to comment.