summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/thread.rb2
-rw-r--r--lib/thwait.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/thread.rb b/lib/thread.rb
index 12fe81c542..d4b6ad6ec1 100644
--- a/lib/thread.rb
+++ b/lib/thread.rb
@@ -223,7 +223,7 @@ class SizedQueue<Queue
def max=(max)
Thread.critical = true
- if @max >= max
+ if max >= @max
@max = max
Thread.critical = false
else
diff --git a/lib/thwait.rb b/lib/thwait.rb
index 45d6a89713..8003f0d3c7 100644
--- a/lib/thwait.rb
+++ b/lib/thwait.rb
@@ -115,7 +115,7 @@ class ThreadsWait
@threads.delete(th = @wait_queue.pop(nonblock))
th
rescue ThreadError
- ThreadsWait.fail ErrNoFinshedThread
+ ThreadsWait.fail ErrNoFinishedThread
end
end