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:
Axel Dörfler
2006-03-12 22:59:49 +00:00
parent 3dd881e3af
commit bc63570c9b
2 changed files with 11 additions and 1 deletions
+8 -1
View File
@@ -2043,7 +2043,14 @@ BWindow::Show()
{
if (!fRunCalled) {
// 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()) {