[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[minion-cvs] Fix crash-after-100-minutes bug



Update of /home/minion/cvsroot/src/minion/lib/mixminion/server
In directory moria.mit.edu:/tmp/cvs-serv12004/lib/mixminion/server

Modified Files:
	Modules.py 
Log Message:
Fix crash-after-100-minutes bug

Index: Modules.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/server/Modules.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- Modules.py	16 Dec 2002 02:40:11 -0000	1.4
+++ Modules.py	16 Dec 2002 03:49:19 -0000	1.5
@@ -133,6 +133,10 @@
         # We do nothing here; we already delivered the messages
         pass
 
+    def cleanQueue(self):
+        # There is no underlying queue to worry about here; do nothing.
+        pass
+        
 class SimpleModuleDeliveryQueue(mixminion.server.Queue.DeliveryQueue):
     """Helper class used as a default delivery queue for modules that
        don't care about batching messages to like addresses."""
@@ -297,7 +301,7 @@
         self.queues[module.getName()] = queue
         self.enabled[module.getName()] = 1
 
-    def cleanQueues(self):
+    def cleanQueue(self):
         """Remove trash messages from all internal queues."""
         for queue in self.queues.values():
             queue.cleanQueue()