mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Moved jabber_free_resources call
This commit is contained in:
parent
2f66feef8a
commit
68c6fe4803
11
src/jabber.c
11
src/jabber.c
@ -70,17 +70,6 @@ jabber_init(const int disable_tls)
|
|||||||
jabber_conn.tls_disabled = disable_tls;
|
jabber_conn.tls_disabled = disable_tls;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
jabber_shutdown(void)
|
|
||||||
{
|
|
||||||
// free memory for connection and context
|
|
||||||
xmpp_conn_release(jabber_conn.conn);
|
|
||||||
xmpp_ctx_free(jabber_conn.ctx);
|
|
||||||
|
|
||||||
// shutdown libstrophe
|
|
||||||
xmpp_shutdown();
|
|
||||||
}
|
|
||||||
|
|
||||||
jabber_conn_status_t
|
jabber_conn_status_t
|
||||||
jabber_connect(const char * const user,
|
jabber_connect(const char * const user,
|
||||||
const char * const passwd)
|
const char * const passwd)
|
||||||
|
@ -41,7 +41,6 @@ typedef enum {
|
|||||||
} jabber_presence_t;
|
} jabber_presence_t;
|
||||||
|
|
||||||
void jabber_init(const int disable_tls);
|
void jabber_init(const int disable_tls);
|
||||||
void jabber_shutdown(void);
|
|
||||||
jabber_conn_status_t jabber_connect(const char * const user,
|
jabber_conn_status_t jabber_connect(const char * const user,
|
||||||
const char * const passwd);
|
const char * const passwd);
|
||||||
gboolean jabber_disconnect(void);
|
gboolean jabber_disconnect(void);
|
||||||
|
@ -281,9 +281,8 @@ _shutdown_init(void)
|
|||||||
while (jabber_get_connection_status() == JABBER_DISCONNECTING) {
|
while (jabber_get_connection_status() == JABBER_DISCONNECTING) {
|
||||||
jabber_process_events();
|
jabber_process_events();
|
||||||
}
|
}
|
||||||
jabber_shutdown();
|
jabber_free_resources();
|
||||||
}
|
}
|
||||||
jabber_free_resources();
|
|
||||||
|
|
||||||
_shutdown();
|
_shutdown();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user