Skip to content

Commit

Permalink
defers_finished?: don't return false if there never was a deferred ac…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
paddor committed Apr 20, 2012
1 parent c36b0b0 commit fe2a94d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/eventmachine.rb
Expand Up @@ -1048,7 +1048,7 @@ def self.spawn_threadpool
# callbacks have been fired. # callbacks have been fired.
# #
def self.defers_finished? 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 @threadqueue and not @threadqueue.empty?
return false if @resultqueue and not @resultqueue.empty? return false if @resultqueue and not @resultqueue.empty?
return false if @threadpool and @threadqueue.num_waiting != @threadpool.size return false if @threadpool and @threadqueue.num_waiting != @threadpool.size
Expand Down

0 comments on commit fe2a94d

Please sign in to comment.