diff options
Diffstat (limited to 'lib/mauve/mauve_thread.rb')
-rw-r--r-- | lib/mauve/mauve_thread.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/mauve/mauve_thread.rb b/lib/mauve/mauve_thread.rb index 1aa8619..55ec446 100644 --- a/lib/mauve/mauve_thread.rb +++ b/lib/mauve/mauve_thread.rb @@ -7,6 +7,7 @@ module Mauve def initialize @thread = nil + @stop = true end def logger @@ -59,7 +60,7 @@ module Mauve end def frozen? - defined? @frozen and @frozen and @thread.stop? + self.alive? and self.stop? end def thaw @@ -88,7 +89,7 @@ module Mauve end def stop? - @thread.is_a?(Thread) and @thread.stop? + !@thread.is_a?(Thread) or @thread.stop? end def join(ok_exceptions=[]) @@ -126,7 +127,6 @@ module Mauve self.join end - alias exit stop def kill |