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:
John Scipione
2013-02-25 15:53:55 -05:00
parent b37d5096dc
commit d06f58081a
-8
View File
@@ -195,14 +195,6 @@ TExpandoMenuBar::DetachedFromWindow()
if (sMonThread != B_ERROR) {
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;
wait_for_thread(sMonThread, &returnCode);