From 7398688a5ef687f4d8a5c1ec92dca9731fd53667 Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Tue, 22 Feb 2011 00:42:02 +0000 Subject: [PATCH] IMAP commands are serialized using the BLooper message queue. MarkMessageAsRead used the direct way to access the protocol and so interfered with ongoing requests. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40606 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/mail/MailDaemon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/servers/mail/MailDaemon.cpp b/src/servers/mail/MailDaemon.cpp index 443fbf767f..4cb4f819ae 100644 --- a/src/servers/mail/MailDaemon.cpp +++ b/src/servers/mail/MailDaemon.cpp @@ -437,8 +437,8 @@ MailDaemonApp::MessageReceived(BMessage* msg) AccountMap::iterator it = fAccounts.find(account); if (it == fAccounts.end()) break; - InboundProtocol* inboundProtocol = it->second.inboundProtocol; - inboundProtocol->MarkMessageAsRead(ref, read); + InboundProtocolThread* inboundThread = it->second.inboundThread; + inboundThread->MarkMessageAsRead(ref, read); break; }