summaryrefslogtreecommitdiff
path: root/src/mailman/core/switchboard.py
diff options
context:
space:
mode:
authorSandesh Kumar Agrawal2013-01-11 05:54:40 +0530
committerSandesh Kumar Agrawal2013-01-11 05:54:40 +0530
commit35b8e64fc3a79968fb5557f130dc1578af439a32 (patch)
treee52494fc4372045b3056c56963491b61a10ebffd /src/mailman/core/switchboard.py
parent96287ec3b29bc0c928e3f886801ee477371c37e9 (diff)
downloadmailman-35b8e64fc3a79968fb5557f130dc1578af439a32.tar.gz
mailman-35b8e64fc3a79968fb5557f130dc1578af439a32.tar.zst
mailman-35b8e64fc3a79968fb5557f130dc1578af439a32.zip
Diffstat (limited to 'src/mailman/core/switchboard.py')
-rw-r--r--src/mailman/core/switchboard.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mailman/core/switchboard.py b/src/mailman/core/switchboard.py
index 4670d601e..e2df550ca 100644
--- a/src/mailman/core/switchboard.py
+++ b/src/mailman/core/switchboard.py
@@ -150,13 +150,12 @@ class Switchboard:
# object or not.
data['_parsemsg'] = (protocol == 0)
# Write to the pickle file the message object and metadata.
- if self.name not in self.non_queue_runner:
- with open(tmpfile, 'w') as fp:
- fp.write(msgsave)
- cPickle.dump(data, fp, protocol)
- fp.flush()
- os.fsync(fp.fileno())
- os.rename(tmpfile, filename)
+ with open(tmpfile, 'w') as fp:
+ fp.write(msgsave)
+ cPickle.dump(data, fp, protocol)
+ fp.flush()
+ os.fsync(fp.fileno())
+ os.rename(tmpfile, filename)
return filebase
def dequeue(self, filebase):