Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…tion
  • Loading branch information...
commit fe2a94dd3af5be68aab0acf96ead8b2cbc8be3ab 1 parent c36b0b0
@paddor paddor authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/eventmachine.rb
View
2  lib/eventmachine.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.