aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/timer.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-06-09 18:09:52 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-06-09 18:09:52 +0100
commit495c44445642cfae8f23fadde299ad5307f5be58 (patch)
tree0104c9eef164235aa5ab05b126c8f63e52fb8624 /lib/mauve/timer.rb
parent0c88fcc91db1b003cd5d5311f62700c7867b4099 (diff)
Big commit
--HG-- rename : views/please_authenticate.haml => views/login.haml
Diffstat (limited to 'lib/mauve/timer.rb')
-rw-r--r--lib/mauve/timer.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/mauve/timer.rb b/lib/mauve/timer.rb
index 5355dcc..60b541c 100644
--- a/lib/mauve/timer.rb
+++ b/lib/mauve/timer.rb
@@ -21,7 +21,6 @@ module Mauve
end
def main_loop
- @logger.debug "hello"
#
# Get the next alert.
#
@@ -73,7 +72,12 @@ module Mauve
#
# This is a rate-limiting step for alerts.
#
- Kernel.sleep 0.2
+ Kernel.sleep 0.1
+ #
+ # Not sure if this is needed or not. But the timer thread seems to
+ # freeze here, apparently stuck on a select() statement.
+ #
+ Thread.pass
end
return if self.should_stop? or next_to_notify.nil?