summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdb/src/dbcontacts.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-03-16 17:26:51 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-03-16 17:26:51 +0000
commit4304b2d5667e36d1a14e3ae13a03e7f537f57f9a (patch)
treee72418c55d54631c06c389a4179867525ad2b9e6 /plugins/Dbx_mdb/src/dbcontacts.cpp
parent5dd0f9a66daa0f22818cd5dcdd85c7d33556d904 (diff)
temporary reverted
git-svn-id: http://svn.miranda-ng.org/main/trunk@16486 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_mdb/src/dbcontacts.cpp')
-rw-r--r--plugins/Dbx_mdb/src/dbcontacts.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Dbx_mdb/src/dbcontacts.cpp b/plugins/Dbx_mdb/src/dbcontacts.cpp
index 0aa4206854..f19811b10e 100644
--- a/plugins/Dbx_mdb/src/dbcontacts.cpp
+++ b/plugins/Dbx_mdb/src/dbcontacts.cpp
@@ -91,11 +91,13 @@ STDMETHODIMP_(LONG) CDbxMdb::DeleteContact(MCONTACT contactID)
return 1;
// delete
+ // call notifier while outside mutex
+ NotifyEventHooks(hContactDeletedEvent, contactID, 0);
mir_cslockfull lck(m_csDbAccess);
{
- LIST<EventItem> events(25);
+ LIST<EventItem> events(50);
GatherContactHistory(contactID, events);
while (events.getCount())
{
@@ -142,10 +144,8 @@ STDMETHODIMP_(LONG) CDbxMdb::DeleteContact(MCONTACT contactID)
if (contactID == m_hLastCachedContact)
m_hLastCachedContact = NULL;
- lck.unlock();
- // call notifier while outside mutex
- NotifyEventHooks(hContactDeletedEvent, contactID, 0);
+ lck.unlock();
return 0;
}