diff options
author | Kali Kaneko <kali@leap.se> | 2014-02-17 10:52:17 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2014-02-17 11:39:51 -0400 |
commit | 16084ee4a0cd7e1246e638c109dcc0ccba87dba1 (patch) | |
tree | 15683c471ff228dec1542e2b325cc1ae2c6a79d0 | |
parent | a2bc2a2ef02bd372c80955cb4e4c0ed951d339ad (diff) |
defer message push to thread
-rw-r--r-- | mail/src/leap/mail/imap/memorystore.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mail/src/leap/mail/imap/memorystore.py b/mail/src/leap/mail/imap/memorystore.py index 53b8d992..2d1f95b2 100644 --- a/mail/src/leap/mail/imap/memorystore.py +++ b/mail/src/leap/mail/imap/memorystore.py @@ -42,6 +42,8 @@ from leap.mail.imap.messageparts import RecentFlagsDoc from leap.mail.imap.messageparts import MessageWrapper from leap.mail.imap.messageparts import ReferenciableDict +from leap.mail.decorators import deferred_to_thread + logger = logging.getLogger(__name__) @@ -514,6 +516,7 @@ class MemoryStore(object): # IMessageStoreWriter + @deferred_to_thread def write_messages(self, store): """ Write the message documents in this MemoryStore to a different store. |