aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/mauve_thread.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mauve/mauve_thread.rb')
-rw-r--r--lib/mauve/mauve_thread.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/mauve/mauve_thread.rb b/lib/mauve/mauve_thread.rb
index 55ec446..ca537da 100644
--- a/lib/mauve/mauve_thread.rb
+++ b/lib/mauve/mauve_thread.rb
@@ -50,6 +50,8 @@ module Mauve
end
def freeze
+ return if self.frozen?
+
logger.debug("Freezing")
@frozen = true
@@ -64,6 +66,8 @@ module Mauve
end
def thaw
+ return unless self.frozen?
+
logger.debug("Thawing")
@frozen = false
@thread.wakeup if @thread.stop?