1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Remove from outstanding requests on /sub

This commit is contained in:
James Booth 2012-11-28 01:17:24 +00:00
parent ce0e96edf5
commit b7a7be37e9

View File

@ -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;