tracking configure as connected is buggy
This commit is contained in:
@@ -62,7 +62,7 @@ typedef struct {
|
||||
gboolean msg_changed;
|
||||
|
||||
// Used by delta_process_connection_state
|
||||
int connection_state;
|
||||
// int connection_state;
|
||||
} ProcessRequest;
|
||||
|
||||
gboolean
|
||||
@@ -79,7 +79,7 @@ delta_process_incoming_message(void *data)
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*
|
||||
gboolean
|
||||
delta_process_connection_state(void *data)
|
||||
{
|
||||
@@ -95,14 +95,14 @@ delta_process_connection_state(void *data)
|
||||
);
|
||||
|
||||
if (pr->connection_state == MAX_DELTA_CONFIGURE) {
|
||||
purple_connection_set_state(pr->conn->pc, PURPLE_CONNECTED);
|
||||
|
||||
}
|
||||
|
||||
g_free(data);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
*/
|
||||
gboolean
|
||||
delta_process_fresh_messages(void *data)
|
||||
{
|
||||
@@ -240,9 +240,10 @@ delta_event_handler(void *context)
|
||||
break;
|
||||
|
||||
case DC_EVENT_CONFIGURE_PROGRESS:
|
||||
pr = delta_build_process_request(conn);
|
||||
pr->connection_state = dc_event_get_data1_int(event);
|
||||
purple_timeout_add(0, delta_process_connection_state, pr);
|
||||
//pr = delta_build_process_request(conn);
|
||||
//pr->connection_state = dc_event_get_data1_int(event);
|
||||
//purple_timeout_add(0, delta_process_connection_state, pr);
|
||||
purple_debug_info(PLUGIN_ID, "Configure progress: %d\n", dc_event_get_data1_int(event));
|
||||
break;
|
||||
|
||||
default:
|
||||
@@ -324,6 +325,8 @@ delta_connection_start_login(PurpleConnection *pc)
|
||||
dc_start_io(mailbox);
|
||||
dc_maybe_network(mailbox);
|
||||
|
||||
purple_connection_set_state(pc, PURPLE_CONNECTED);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user