BWindow::Show() will no longer Run() its looper without a valid app_server
connection. StressTest now detects this case and quits those windows. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16752 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2043,7 +2043,14 @@ BWindow::Show()
|
|||||||
{
|
{
|
||||||
if (!fRunCalled) {
|
if (!fRunCalled) {
|
||||||
// this is the fist time Show() is called, which implicetly runs the looper
|
// this is the fist time Show() is called, which implicetly runs the looper
|
||||||
Run();
|
if (fLink->SenderPort() < B_OK) {
|
||||||
|
// We don't have valid app_server connection; there is no point
|
||||||
|
// in starting our looper
|
||||||
|
fRunCalled = true;
|
||||||
|
fTaskID = B_ERROR;
|
||||||
|
return;
|
||||||
|
} else
|
||||||
|
Run();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Lock()) {
|
if (Lock()) {
|
||||||
|
|||||||
@@ -104,6 +104,9 @@ TestWindow::TestWindow(BRect frame)
|
|||||||
BMessenger self(this);
|
BMessenger self(this);
|
||||||
BMessage message(B_QUIT_REQUESTED);
|
BMessage message(B_QUIT_REQUESTED);
|
||||||
fPulse = new BMessageRunner(self, &message, 10000000, 1);
|
fPulse = new BMessageRunner(self, &message, 10000000, 1);
|
||||||
|
|
||||||
|
if (Thread() < B_OK)
|
||||||
|
Quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user