diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-06-17 12:48:53 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-06-17 12:48:53 +0100 |
commit | a2fc458d4c1bc6027760546653cb153e775576ce (patch) | |
tree | f3af3775adab48d9a18495eeb410cf48269ffd9e /lib/mauve/mauve_thread.rb | |
parent | 4b39583e63b59d73e2855d776f7cca12d734f2af (diff) |
* Notifications are now run in their separate threads.
* Queues are now just arrays instead of "Queue"s
* Updated templates to be saner.
* Added flusing of queues when threads stop
Diffstat (limited to 'lib/mauve/mauve_thread.rb')
-rw-r--r-- | lib/mauve/mauve_thread.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/mauve/mauve_thread.rb b/lib/mauve/mauve_thread.rb index 3aba6fe..79e742a 100644 --- a/lib/mauve/mauve_thread.rb +++ b/lib/mauve/mauve_thread.rb @@ -12,7 +12,7 @@ module Mauve @logger ||= Log4r::Logger.new(self.class.to_s) end - def run_thread(interval = 0.2) + def run_thread(interval = 0.1) # # Good to go. # @@ -98,7 +98,7 @@ module Mauve self.stop self.start end - + def stop logger.debug("Stopping") @@ -117,6 +117,7 @@ module Mauve self.join end + alias exit stop def kill |