Fix spelling and potential deadlock.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40414 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b985151b34
commit
a68750c1ac
@ -337,7 +337,7 @@ IMAPInboundProtocol::Connect(const char* server, const char* username,
|
||||
fStorage.StartReadDatabase();
|
||||
status = fIMAPMailbox.SelectMailbox(fMailboxName);
|
||||
if (status != B_OK) {
|
||||
fStorage.WaitForDatabaseReaded();
|
||||
fStorage.WaitForDatabaseRead();
|
||||
statusMessage = "Failed to select mailbox (";
|
||||
statusMessage += fMailboxName;
|
||||
statusMessage += "): ";
|
||||
@ -350,14 +350,14 @@ IMAPInboundProtocol::Connect(const char* server, const char* username,
|
||||
ReportProgress(0, 1, "Fetch message list");
|
||||
status = fIMAPMailbox.Sync();
|
||||
if (status != B_OK) {
|
||||
fStorage.WaitForDatabaseReaded();
|
||||
fStorage.WaitForDatabaseRead();
|
||||
ShowError("Failed to sync mailbox");
|
||||
ResetProgress();
|
||||
return status;
|
||||
}
|
||||
|
||||
ReportProgress(0, 1, "Read local message list");
|
||||
status = fStorage.WaitForDatabaseReaded();
|
||||
status = fStorage.WaitForDatabaseRead();
|
||||
if (status != B_OK) {
|
||||
ShowError("Can't read database");
|
||||
ResetProgress();
|
||||
|
@ -25,8 +25,6 @@
|
||||
status_t
|
||||
IMAPMailboxSync::Sync(IMAPStorage& storage, IMAPMailbox& mailbox)
|
||||
{
|
||||
storage.WaitForDatabaseReaded();
|
||||
|
||||
const MailEntryMap& files = storage.GetFiles();
|
||||
const MinMessageList& messages = mailbox.GetMessageList();
|
||||
|
||||
@ -151,7 +149,7 @@ IMAPStorage::StartReadDatabase()
|
||||
|
||||
|
||||
status_t
|
||||
IMAPStorage::WaitForDatabaseReaded()
|
||||
IMAPStorage::WaitForDatabaseRead()
|
||||
{
|
||||
// just wait for thread
|
||||
if (acquire_sem(fLoadDatabaseLock) != B_OK)
|
||||
|
@ -52,7 +52,7 @@ public:
|
||||
void SetTo(const char* dir);
|
||||
|
||||
status_t StartReadDatabase();
|
||||
status_t WaitForDatabaseReaded();
|
||||
status_t WaitForDatabaseRead();
|
||||
|
||||
status_t AddNewMessage(int32 uid, int32 flags,
|
||||
BPositionIO** file = NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user