fix build of server for test environment

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14640 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2005-11-02 13:15:36 +00:00
parent 26a2be8ba5
commit 382049ca6f
+2 -1
View File
@@ -5,6 +5,7 @@
* Authors:
* DarkWyrm <[email protected]>
* Axel Dörfler, [email protected]
* Stephan Aßmus <[email protected]>
*/
#include <unistd.h>
@@ -405,7 +406,7 @@ AppServer::_DispatchMessage(int32 code, BPrivate::LinkReceiver& msg)
while (fDesktops.CountItems() > 0) {
Desktop *desktop = fDesktops.RemoveItemAt(0);
thread_id thread = sDesktop->Thread();
thread_id thread = desktop->Thread();
desktop->PostMessage(B_QUIT_REQUESTED);
// we just wait for the desktop to kill itself