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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user