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
This commit is contained in:
parent
f91bf83feb
commit
b2f8cb2ef4
|
@ -705,6 +705,8 @@ TRoster::HandleGetAppList(BMessage *request)
|
||||||
for (AppInfoList::Iterator it(fRegisteredApps.It());
|
for (AppInfoList::Iterator it(fRegisteredApps.It());
|
||||||
RosterAppInfo *info = *it;
|
RosterAppInfo *info = *it;
|
||||||
++it) {
|
++it) {
|
||||||
|
if (info->state != APP_STATE_REGISTERED)
|
||||||
|
continue;
|
||||||
if (!signature || !strcasecmp(signature, info->signature))
|
if (!signature || !strcasecmp(signature, info->signature))
|
||||||
reply.AddInt32("teams", info->team);
|
reply.AddInt32("teams", info->team);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue