Changeset - 8db20bcae04d
[Not reviewed]
0 1 0
Jan Kaluza - 14 years ago 2011-08-23 15:32:38
hanzz.k@gmail.com
Call handleLogoutRequest in timer
1 file changed with 7 insertions and 1 deletions:
0 comments (0 inline, 0 general)
backends/libpurple/main.cpp
Show inline comments
 
@@ -839,28 +839,34 @@ static PurpleConversationUiOps conversation_ui_ops =
 
	NULL,//pidgin_conv_present_conversation, /* present              */
 
	NULL,//pidgin_conv_has_focus,            /* has_focus            */
 
	NULL,//pidgin_conv_custom_smiley_add,    /* custom_smiley_add    */
 
	NULL,//pidgin_conv_custom_smiley_write,  /* custom_smiley_write  */
 
	NULL,//pidgin_conv_custom_smiley_close,  /* custom_smiley_close  */
 
	NULL,//pidgin_conv_send_confirm,         /* send_confirm         */
 
	NULL,
 
	NULL,
 
	NULL,
 
	NULL
 
};
 

	
 
static gboolean disconnectMe(void *data) {
 
	PurpleAccount *account = (PurpleAccount *) data;
 
	np->handleLogoutRequest(np->m_accounts[account], purple_account_get_username(account));
 
	return FALSE;
 
}
 

	
 
static void connection_report_disconnect(PurpleConnection *gc, PurpleConnectionError reason, const char *text){
 
	PurpleAccount *account = purple_connection_get_account(gc);
 
	np->handleDisconnected(np->m_accounts[account], (int) reason, text ? text : "");
 
	np->handleLogoutRequest(np->m_accounts[account], purple_account_get_username(account));
 
	purple_timeout_add(1, disconnectMe, account);
 
}
 

	
 
static PurpleConnectionUiOps conn_ui_ops =
 
{
 
	NULL,
 
	NULL,
 
	NULL,//connection_disconnected,
 
	NULL,
 
	NULL,
 
	NULL,
 
	NULL,
 
	connection_report_disconnect,
0 comments (0 inline, 0 general)