[Nym3-commit] r519 - trunk/nymbaron/Server
jr at conuropsis.org
jr at conuropsis.org
Tue Jun 20 22:29:46 CEST 2006
Author: jr
Date: 2006-06-20 22:29:46 +0200 (Tue, 20 Jun 2006)
New Revision: 519
Modified:
trunk/nymbaron/Server/Main.py
Log:
- use advanced_send for summarize answer
Modified: trunk/nymbaron/Server/Main.py
===================================================================
--- trunk/nymbaron/Server/Main.py 2006-06-20 18:32:10 UTC (rev 518)
+++ trunk/nymbaron/Server/Main.py 2006-06-20 20:29:46 UTC (rev 519)
@@ -388,13 +388,9 @@
sumCom = Message.Summary()
sumCom.fromData("\x00\x00","")
comList = [sumCom]
- ec = nymUser.send(Message.buildMessage(comList))
- if ec == 0:
- nymUser.markMid(mList, lifeCycle['synopsis-sent'])
- else:
- logger.error("mixminion exited abnormally with error code %d" % ec)
- sys.exit(2)
-
+ nymUser.advanced_send(Message.buildMessage(comList), \
+ fun = nymUser.markMid, \
+ funargs = (mList, lifeCycle['synopsis-sent']))
elif com.ct() == Message.CToSCODE['Delete']:
logger.debug("Control message is a Delete request from %s" % h.nym)
for mid in com.l:
More information about the Nym3-commit
mailing list