aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Cgi/confirm.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/Cgi/confirm.py')
-rw-r--r--Mailman/Cgi/confirm.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Mailman/Cgi/confirm.py b/Mailman/Cgi/confirm.py
index ff4d549f..a1886052 100644
--- a/Mailman/Cgi/confirm.py
+++ b/Mailman/Cgi/confirm.py
@@ -308,8 +308,12 @@ def subscription_prompt(mlist, doc, cookie, userdesc):
def subscription_cancel(mlist, doc, cookie):
- # Discard this cookie
- userdesc = mlist.pend_confirm(cookie)[1]
+ mlist.Lock()
+ try:
+ # Discard this cookie
+ userdesc = mlist.pend_confirm(cookie)[1]
+ finally:
+ mlist.Unlock()
lang = userdesc.language
i18n.set_language(lang)
doc.set_language(lang)