Move event timeout to connection module

This commit is contained in:
James Booth
2016-07-24 14:08:30 +01:00
parent 8d8f2f290d
commit 0649aad80d
7 changed files with 14 additions and 14 deletions

View File

@@ -90,6 +90,12 @@ connection_init(void)
conn.available_resources = g_hash_table_new_full(g_str_hash, g_str_equal, free, (GDestroyNotify)resource_destroy);
}
void
connection_check_events(void)
{
xmpp_run_once(conn.xmpp_ctx, 10);
}
void
connection_shutdown(void)
{
@@ -191,7 +197,7 @@ connection_disconnect(void)
xmpp_disconnect(conn.xmpp_conn);
while (conn.conn_status == JABBER_DISCONNECTING) {
session_process_events(10);
session_process_events();
}
if (conn.xmpp_conn) {