summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-08-22 17:20:54 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-08-22 17:20:54 +0300
commit2be2a04af85d58577b2cd7d5e67191208c7cf604 (patch)
treefeb6210aa70e63aae80ebc79efc8bc843be664aa /plugins
parent1c6e1a05125892072984932ec1ac4468215a87df (diff)
fixes #901 (Database corruption)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/TabSRMM/src/contactcache.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/contactcache.cpp b/plugins/TabSRMM/src/contactcache.cpp
index b612be884a..33a5aa1fc2 100644
--- a/plugins/TabSRMM/src/contactcache.cpp
+++ b/plugins/TabSRMM/src/contactcache.cpp
@@ -383,7 +383,8 @@ void CContactCache::deletedHandler()
cc = &ccInvalid;
m_isValid = false;
if (m_dat)
- ::SendMessage(m_dat->GetHwnd(), WM_CLOSE, 1, 2);
+ // this message must be sent async to allow a contact to rest in peace before window gets closed
+ ::PostMessage(m_dat->GetHwnd(), WM_CLOSE, 1, 2);
releaseAlloced();
m_hContact = INVALID_CONTACT_ID;