From 2be2a04af85d58577b2cd7d5e67191208c7cf604 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 22 Aug 2017 17:20:54 +0300 Subject: fixes #901 (Database corruption) --- plugins/TabSRMM/src/contactcache.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/TabSRMM/src') 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; -- cgit v1.2.3