From f38fdd5fa8c435c42e31fcc8f99c796515355067 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 3 Aug 2019 19:05:12 +0300 Subject: CloseAction: spin cycle removed --- src/core/stdclist/src/clistmenus.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/core') diff --git a/src/core/stdclist/src/clistmenus.cpp b/src/core/stdclist/src/clistmenus.cpp index ccfc8a8241..81f248bf59 100644 --- a/src/core/stdclist/src/clistmenus.cpp +++ b/src/core/stdclist/src/clistmenus.cpp @@ -26,10 +26,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. static INT_PTR CloseAction(WPARAM, LPARAM) { - if (Miranda_OkToExit()) - DestroyWindow(g_clistApi.hwndContactList); + while (!Miranda_OkToExit()) + Sleep(100); - return(0); + DestroyWindow(g_clistApi.hwndContactList); + return 0; } void InitCustomMenus() -- cgit v1.2.3