From b7a7be37e954ddf3759cd262d8aec94a99495477 Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 28 Nov 2012 01:17:24 +0000 Subject: [PATCH] Remove from outstanding requests on /sub --- src/jabber.c | 1 + 1 file changed, 1 insertion(+) 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;