diff options
author | James Booth <boothj5@gmail.com> | 2012-11-28 01:17:24 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-11-28 01:17:24 +0000 |
commit | b7a7be37e954ddf3759cd262d8aec94a99495477 (patch) | |
tree | 58497790e97a0bcba2d7ab94accce113caef74c6 | |
parent | ce0e96edf51d2ee2bc8bbe55520893741668cde1 (diff) | |
download | profani-tty-b7a7be37e954ddf3759cd262d8aec94a99495477.tar.gz |
Remove from outstanding requests on /sub
-rw-r--r-- | src/jabber.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jabber.c b/src/jabber.c index e03f1e2b..8ade22be 100644 --- a/src/jabber.c +++ b/src/jabber.c @@ -260,6 +260,7 @@ jabber_subscription(const char * const jid, jabber_subscr_t action) // jid must be a bare JID jid_cpy = strdup(jid); bare_jid = strtok(jid_cpy, "/"); + g_hash_table_remove(sub_requests, bare_jid); if (action == PRESENCE_SUBSCRIBE) type = STANZA_TYPE_SUBSCRIBE; |