pidgin.mxit: 2b62fc7e: When performing a redirect, need to stop...

andrew.victor at mxit.com andrew.victor at mxit.com
Fri Aug 20 04:41:25 EDT 2010


----------------------------------------------------------------------
Revision: 2b62fc7e560dfcd0decc64eff067becbb581c423
Parent:   ca3f749b4a77e4a711e7c1634806f5e6a4f69837
Author:   andrew.victor at mxit.com
Date:     08/20/10 04:34:12
Branch:   im.pidgin.pidgin.mxit
URL: http://d.pidgin.im/viewmtn/revision/info/2b62fc7e560dfcd0decc64eff067becbb581c423

Changelog: 

When performing a redirect, need to stop the input-reader before closing
the connection.


Changes against parent ca3f749b4a77e4a711e7c1634806f5e6a4f69837

  patched  libpurple/protocols/mxit/login.c

-------------- next part --------------
============================================================
--- libpurple/protocols/mxit/login.c	a10dab5a9666e795e60966664f9fc109e2cabca9
+++ libpurple/protocols/mxit/login.c	ac4559e63c137a4949de736f0a022afa3b819683
@@ -762,6 +762,12 @@ void mxit_reconnect( struct MXitSession*
 {
 	purple_debug_info( MXIT_PLUGIN_ID, "mxit_reconnect\n" );
 
+	/* remove the input cb function */
+	if ( session->con->inpa ) {
+		purple_input_remove( session->con->inpa );
+		session->con->inpa = 0;
+	}
+
 	/* close existing connection */
 	session->flags &= ~MXIT_FLAG_CONNECTED;
 	purple_proxy_connect_cancel_with_handle( session->con );


More information about the Commits mailing list