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