diff options
author | mogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-01 18:48:22 +0000 |
---|---|---|
committer | mogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-01 18:48:22 +0000 |
commit | 7066b7cd10e4eb553671c62f163a0e5715a5b860 (patch) | |
tree | 699659d71902e3a0de6c1bc20335e8d98aa0dd30 | |
parent | 6d7de07024e145db9ce892325718df37048e1617 (diff) |
more minor fixes thanks Julian on pointing out
potential problems
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@31469 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | res/res_jabber.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/res/res_jabber.c b/res/res_jabber.c index 71a60552d..dde2ecdef 100644 --- a/res/res_jabber.c +++ b/res/res_jabber.c @@ -342,9 +342,7 @@ static int aji_status_exec(struct ast_channel *chan, void *data) if (!strcasecmp(iterator->user, screenname)) { found = 1; r = iterator->resources; - if (!r) { /* client hasnt signed on */ - break; - } else { + if (r) { /* client has signed on */ if (resource) { while (r) { if (!strcasecmp(r->resource, resource)) { @@ -353,7 +351,9 @@ static int aji_status_exec(struct ast_channel *chan, void *data) } r = r->next; } + if(stat != 7) break; ast_log(LOG_WARNING, "Resource not found %s\n", resource); + break; } else { stat = r->status; break; |