summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-08-03 19:05:12 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-08-03 19:05:12 +0300
commitf38fdd5fa8c435c42e31fcc8f99c796515355067 (patch)
tree99cd0c91826ed9137e524a0165ec15ec192a8192 /plugins/Clist_modern/src
parentd057fcad5175ef542723981f59c6184a67942864 (diff)
CloseAction: spin cycle removed
Diffstat (limited to 'plugins/Clist_modern/src')
-rw-r--r--plugins/Clist_modern/src/modern_clistmenus.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/plugins/Clist_modern/src/modern_clistmenus.cpp b/plugins/Clist_modern/src/modern_clistmenus.cpp
index 367c1cda70..ab705cb225 100644
--- a/plugins/Clist_modern/src/modern_clistmenus.cpp
+++ b/plugins/Clist_modern/src/modern_clistmenus.cpp
@@ -130,14 +130,10 @@ static INT_PTR CloseAction(WPARAM, LPARAM)
{
g_CluiData.bSTATE = STATE_PREPARETOEXIT; // workaround for avatar service and other wich destroys service on OK_TOEXIT
- bool k;
- do {
- k = Miranda_OkToExit();
- } while (!k);
-
- if (k)
- DestroyWindow(g_clistApi.hwndContactList);
+ while (!Miranda_OkToExit())
+ Sleep(100);
+ DestroyWindow(g_clistApi.hwndContactList);
return 0;
}