The window was removing the app_server connection too early, and thus hang in Quit().

Removed the stopConnection() method.
Cleaned up header a bit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12959 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-06-05 18:57:55 +00:00
parent 2e1184a6e4
commit e17b33e56b
2 changed files with 275 additions and 346 deletions
+4 -14
View File
@@ -242,6 +242,10 @@ BWindow::~BWindow()
// disable pulsing
SetPulseRate(0);
// tell app_server about our demise
fLink->StartMessage(AS_DELETE_WINDOW);
fLink->Flush();
delete fLink;
delete_port(receive_port);
}
@@ -328,10 +332,6 @@ BWindow::Quit()
// ... also its children
//detachTopView();
STRACE(("Trying to stop connection...\n"));
// tell app_server, this window will finish execution
stopConnection();
STRACE(("Connection stopped!\n"));
if (fFlags & B_QUIT_ON_WINDOW_CLOSE)
be_app->PostMessage(B_QUIT_REQUESTED);
@@ -2385,16 +2385,6 @@ BWindow::BuildTopView()
}
void
BWindow::stopConnection()
{
Lock();
fLink->StartMessage(AS_DELETE_WINDOW);
fLink->Flush();
Unlock();
}
void
BWindow::prepareView(BView *view)
{