Remove connection_free_conn(), connection_free_ctx()
This commit is contained in:
@@ -194,6 +194,16 @@ connection_disconnect(void)
|
||||
while (conn.conn_status == JABBER_DISCONNECTING) {
|
||||
session_process_events(10);
|
||||
}
|
||||
|
||||
if (conn.xmpp_conn) {
|
||||
xmpp_conn_release(conn.xmpp_conn);
|
||||
conn.xmpp_conn = NULL;
|
||||
}
|
||||
|
||||
if (conn.xmpp_ctx) {
|
||||
xmpp_ctx_free(conn.xmpp_ctx);
|
||||
conn.xmpp_ctx = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef HAVE_LIBMESODE
|
||||
@@ -372,24 +382,6 @@ connection_get_presence_msg(void)
|
||||
return conn.presence_message;
|
||||
}
|
||||
|
||||
void
|
||||
connection_free_conn(void)
|
||||
{
|
||||
if (conn.xmpp_conn) {
|
||||
xmpp_conn_release(conn.xmpp_conn);
|
||||
conn.xmpp_conn = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
connection_free_ctx(void)
|
||||
{
|
||||
if (conn.xmpp_ctx) {
|
||||
xmpp_ctx_free(conn.xmpp_ctx);
|
||||
conn.xmpp_ctx = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
connection_free_presence_msg(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user