Move event timeout to connection module
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user