| Fix missing mutex class in test mode - warvox - VoIP based wardialing tool, for… | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| commit ed9f6e5f44b4541ef1d82cc0722f7434caa4e022 | |
| parent f0b2da65dfa678f674111b220705c70cb9666e55 | |
| Author: HD Moore <[email protected]> | |
| Date: Thu, 5 Mar 2009 07:51:17 +0000 | |
| Fix missing mutex class in test mode | |
| Diffstat: | |
| M lib/warvox/jobs.rb | 4 +++- | |
| 1 file changed, 3 insertions(+), 1 deletion(-) | |
| --- | |
| diff --git a/lib/warvox/jobs.rb b/lib/warvox/jobs.rb | |
| @@ -2,8 +2,10 @@ module WarVOX | |
| class JobQueue | |
| attr_accessor :active_job, :active_thread, :queue, :queue_thread | |
| + require "thread" | |
| + | |
| def initialize | |
| - @mutex = Mutex.new | |
| + @mutex = ::Mutex.new | |
| @queue = [] | |
| @queue_thread = Thread.new{ manage_queue } | |