Added a TODO item with a bad bug report

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12524 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2005-05-02 08:29:37 +00:00
parent f812bf8b4c
commit 55814cfde4

View File

@ -609,6 +609,13 @@ void AppServer::DispatchMessage(int32 code, BPortLink &msg)
if(srvapp)
{
status_t temp;
// TODO: This call never returns, thus screwing the
// app server completely: it's easy to test:
// run any test app which creates a window, quit
// the application clicking on the window's "close" button,
// and try to launch the application again. It won't start.
// Anyway, this should be moved to ~ServerApp() (which has already
// a "kill_thread()" call, btw).
wait_for_thread(srvapp_id, &temp);
delete srvapp;
srvapp= NULL;