aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/pop3_server.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-07-03 15:26:51 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-07-03 15:26:51 +0100
commit5bfb713e39fde3778f57cb33f90157fc870bf64b (patch)
treeb8bbb095916a935471a2c7d16e19c263c15989c1 /lib/mauve/pop3_server.rb
parent4153ce040ccc82421865438a32fe7e17d9739ac6 (diff)
Removed ability to freeze threads, since that is not used any more.
Added checks to make sure threads are run at least every two minutes.
Diffstat (limited to 'lib/mauve/pop3_server.rb')
-rw-r--r--lib/mauve/pop3_server.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/mauve/pop3_server.rb b/lib/mauve/pop3_server.rb
index 861b719..971adae 100644
--- a/lib/mauve/pop3_server.rb
+++ b/lib/mauve/pop3_server.rb
@@ -76,10 +76,17 @@ module Mauve
super
end
+ #
+ # Since Server.start doesn't return below, we can't check when the thread was last polled.
+ #
+ def last_polled_at
+ Time.now
+ end
+
private
#
- # This tarts the server, and keeps it going.
+ # This starts the server, and keeps it going.
#
def main_loop
unless @server and @server.running?