Revert "Prevent a deadlock condition in Deskbar. Fixes #8539"
This reverts commit 733be65954.
It didn't fix the bug, will try again.
This commit is contained in:
@@ -195,14 +195,6 @@ TExpandoMenuBar::DetachedFromWindow()
|
|||||||
if (sMonThread != B_ERROR) {
|
if (sMonThread != B_ERROR) {
|
||||||
sDoMonitor = false;
|
sDoMonitor = false;
|
||||||
|
|
||||||
if (Window()->IsLocked()) {
|
|
||||||
// If window is locked by the menu_tracking thread kill it
|
|
||||||
// to prevent a deadlock. See ticket #8539.
|
|
||||||
thread_id menu_tracking = find_thread("menu_tracking");
|
|
||||||
if (menu_tracking != B_NAME_NOT_FOUND)
|
|
||||||
kill_thread(menu_tracking);
|
|
||||||
}
|
|
||||||
|
|
||||||
status_t returnCode;
|
status_t returnCode;
|
||||||
wait_for_thread(sMonThread, &returnCode);
|
wait_for_thread(sMonThread, &returnCode);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user