Update of /cvsroot/mailman/mailman3/src/mailman
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26317
Modified Files:
startup.py
Log Message:
shutdown(): Clear out the global _shutdowns list to avoid multiple shutdowns
without an intervening startup().
Index: startup.py
===================================================================
RCS file: /cvsroot/mailman/mailman3/src/mailman/startup.py,v
retrieving revision 3.1
retrieving revision 3.2
diff -u -d -r3.1 -r3.2
--- startup.py 20 Apr 2004 04:14:18 -0000 3.1
+++ startup.py 1 May 2004 17:52:47 -0000 3.2
@@ -24,7 +24,7 @@
def startup():
- # Only startup once
+ # Only startup once, unless shutdown() has been called since.
if _shutdowns:
return
for m in configuration.startups.component:
@@ -42,3 +42,7 @@
def shutdown():
for m in _shutdowns:
m.shutdown()
+ # Clear the global out so multiple shutdown() calls in a row won't crash
+ # things, but so that if startup() is subsequently called again,
+ # shutdown() will still work. This is used by the test suite.
+ del _shutdowns[:]
_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
Unsubscribe: http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org