mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Merge branch 'master' of https://github.com/pasis/profanity
This commit is contained in:
commit
2f66feef8a
@ -254,6 +254,14 @@ jabber_get_jid(void)
|
||||
return xmpp_conn_get_jid(jabber_conn.conn);
|
||||
}
|
||||
|
||||
void
|
||||
jabber_free_resources(void)
|
||||
{
|
||||
xmpp_conn_release(jabber_conn.conn);
|
||||
xmpp_ctx_free(jabber_conn.ctx);
|
||||
xmpp_shutdown();
|
||||
}
|
||||
|
||||
static int
|
||||
_message_handler(xmpp_conn_t * const conn,
|
||||
xmpp_stanza_t * const stanza, void * const userdata)
|
||||
|
@ -51,5 +51,6 @@ void jabber_send(const char * const msg, const char * const recipient);
|
||||
void jabber_update_presence(jabber_presence_t status, const char * const msg);
|
||||
const char * jabber_get_jid(void);
|
||||
jabber_conn_status_t jabber_get_connection_status(void);
|
||||
void jabber_free_resources(void);
|
||||
|
||||
#endif
|
||||
|
@ -283,6 +283,7 @@ _shutdown_init(void)
|
||||
}
|
||||
jabber_shutdown();
|
||||
}
|
||||
jabber_free_resources();
|
||||
|
||||
_shutdown();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user