lib/tpool_block.rb in tpool-0.0.3 vs lib/tpool_block.rb in tpool-0.0.4
- old
+ new
@@ -28,10 +28,10 @@
@thread_running = nil
end
if @args[:thread_starts]
@args[:thread_starts].each do |thread|
- thread.wakeup
+ thread.wakeup if thread.alive?
end
end
return self
end
\ No newline at end of file