From 13b76705a015409ca51892c020382c123d0e489c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Wed, 16 Jan 2008 18:41:40 +0000 Subject: [PATCH] * forgot to update the blocked window's redrawing git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23562 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/drivesetup/InitParamsPanel.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/preferences/drivesetup/InitParamsPanel.cpp b/src/preferences/drivesetup/InitParamsPanel.cpp index 7aa5064039..e791072c83 100644 --- a/src/preferences/drivesetup/InitParamsPanel.cpp +++ b/src/preferences/drivesetup/InitParamsPanel.cpp @@ -202,7 +202,13 @@ InitParamsPanel::Go(BString& name, BString& parameters) Unlock(); // block this thread now - acquire_sem(fExitSemaphore); + while (true) { + status_t err = acquire_sem_etc(fExitSemaphore, 1, + B_CAN_INTERRUPT | B_RELATIVE_TIMEOUT, 50000); + if (err != B_TIMED_OUT && err != B_INTERRUPTED) + break; + fWindow->UpdateIfNeeded(); + } if (!Lock()) return GO_CANCELED;