From b2f8cb2ef45e20fdf475c8cef165189e4cca152f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Mon, 29 Jan 2007 23:36:15 +0000 Subject: [PATCH] it seems fRegisteredApps also lists not fully running apps, so we add a check for the state APP_STATE_REGISTERED. this fixes the ticket #627. Ingo, could you review ? This check might also be needed at other places. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20014 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/registrar/TRoster.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/servers/registrar/TRoster.cpp b/src/servers/registrar/TRoster.cpp index b355631850..0fb11472de 100644 --- a/src/servers/registrar/TRoster.cpp +++ b/src/servers/registrar/TRoster.cpp @@ -705,6 +705,8 @@ TRoster::HandleGetAppList(BMessage *request) for (AppInfoList::Iterator it(fRegisteredApps.It()); RosterAppInfo *info = *it; ++it) { + if (info->state != APP_STATE_REGISTERED) + continue; if (!signature || !strcasecmp(signature, info->signature)) reply.AddInt32("teams", info->team); }