From 57b04c902e838639e6829d3878a0d0e8e94d5707 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Mon, 17 May 2010 21:50:42 +0200 Subject: [PATCH] Add missing Unlock on ML creation. WARNING: this patch requires mailman *and* the rpc to be restarted. Signed-off-by: Florent Bruneau --- bin/lists.rpc.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/lists.rpc.py b/bin/lists.rpc.py index 694cee9..c0a08a1 100755 --- a/bin/lists.rpc.py +++ b/bin/lists.rpc.py @@ -875,8 +875,11 @@ def create_list(userdesc, perms, vhost, listname, desc, advertise, modlevel, ins # avoid the "-1 mail to moderate" bug mlist = MailList.MailList(name) - mlist._UpdateRecords() - mlist.Save() + try: + mlist._UpdateRecords() + mlist.Save() + finally: + mlist.Unlock() return 1 def delete_list(userdesc, perms, mlist, del_archives=0): -- 2.1.4