mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 16:16:21 +00:00
Moved jabber_free_resources call
This commit is contained in:
11
src/jabber.c
11
src/jabber.c
@@ -70,17 +70,6 @@ jabber_init(const int 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_connect(const char * const user,
|
||||
const char * const passwd)
|
||||
|
||||
@@ -41,7 +41,6 @@ typedef enum {
|
||||
} jabber_presence_t;
|
||||
|
||||
void jabber_init(const int disable_tls);
|
||||
void jabber_shutdown(void);
|
||||
jabber_conn_status_t jabber_connect(const char * const user,
|
||||
const char * const passwd);
|
||||
gboolean jabber_disconnect(void);
|
||||
|
||||
@@ -281,9 +281,8 @@ _shutdown_init(void)
|
||||
while (jabber_get_connection_status() == JABBER_DISCONNECTING) {
|
||||
jabber_process_events();
|
||||
}
|
||||
jabber_shutdown();
|
||||
jabber_free_resources();
|
||||
}
|
||||
jabber_free_resources();
|
||||
|
||||
_shutdown();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user