diff options
Diffstat (limited to 'src/jabber.c')
-rw-r--r-- | src/jabber.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/jabber.c b/src/jabber.c index 64d33666..6b16e16d 100644 --- a/src/jabber.c +++ b/src/jabber.c @@ -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) |