aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/timer.rb
diff options
context:
space:
mode:
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?