lib/thread/pool.rb in thread-0.2.1 vs lib/thread/pool.rb in thread-0.2.2

- old
+ new

@@ -81,10 +81,10 @@ @thread = nil end # Raise an exception in the thread used by the task. def raise(exception) - @thread.raise(exception) + @thread.raise(exception) if @thread end # Terminate the exception with an optionally given exception. def terminate!(exception = Asked) return if terminated? || finished? || timeout?