[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Fix for last patch: clean queue on successful delivery ...



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

Modified Files:
	ClientMain.py 
Log Message:
Fix for last patch: clean queue on successful delivery (otherwise removed packets take up disk space indefinitely)

Index: ClientMain.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/ClientMain.py,v
retrieving revision 1.143
retrieving revision 1.144
diff -u -d -r1.143 -r1.144
--- ClientMain.py	21 Dec 2003 18:32:11 -0000	1.143
+++ ClientMain.py	21 Dec 2003 19:07:19 -0000	1.144
@@ -500,6 +500,12 @@
                     self.queue.removePacket(handles[idx])
                 elif hasattr(pktList[idx], 'remove'):
                     pktList[idx].remove()
+            if nGood:
+                try:
+                    self.queue.cleanQueue()
+                except:
+                    e2 = sys.exc_info()
+                    LOG.error("Error while cleaning queue: %s",e2[1])
 
             if nBad and warnIfLost:
                 LOG.error("Error with queueing disabled: %s/%s lost",