diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-07-18 16:44:21 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-07-18 16:44:21 +0100 |
commit | bbc6dc3fccfcdffef65211dd4d1c4058ecef624b (patch) | |
tree | bb99c37166e130ca393121cdfae8cb19f6f472ba /lib/mauve/processor.rb | |
parent | d84d5fb931850955a9eb0f4a0edd0b6a00dc8ed9 (diff) |
Improved code to avoid Exception when the processor attempts to freeze a thread
that is not running.
Diffstat (limited to 'lib/mauve/processor.rb')
-rw-r--r-- | lib/mauve/processor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mauve/processor.rb b/lib/mauve/processor.rb index 15987c2..e3aac54 100644 --- a/lib/mauve/processor.rb +++ b/lib/mauve/processor.rb @@ -36,7 +36,7 @@ module Mauve # break if data.nil? - Timer.instance.freeze unless Timer.instance.frozen? + Timer.instance.freeze if Timer.instance.alive? and !Timer.instance.frozen? logger.debug("Got #{data.inspect} from #{client.inspect}") |