Mercurial > pidgin.yaz
comparison libpurple/protocols/mxit/login.c @ 31726:69760676c50c
When performing a redirect, need to stop the input-reader before closing
the connection.
author | andrew.victor@mxit.com |
---|---|
date | Fri, 20 Aug 2010 08:34:12 +0000 |
parents | b6b0c80f9dde |
children | 607ad979a753 754459ff7b23 |
comparison
equal
deleted
inserted
replaced
31725:8cb7b4fe18da | 31726:69760676c50c |
---|---|
760 */ | 760 */ |
761 void mxit_reconnect( struct MXitSession* session ) | 761 void mxit_reconnect( struct MXitSession* session ) |
762 { | 762 { |
763 purple_debug_info( MXIT_PLUGIN_ID, "mxit_reconnect\n" ); | 763 purple_debug_info( MXIT_PLUGIN_ID, "mxit_reconnect\n" ); |
764 | 764 |
765 /* remove the input cb function */ | |
766 if ( session->con->inpa ) { | |
767 purple_input_remove( session->con->inpa ); | |
768 session->con->inpa = 0; | |
769 } | |
770 | |
765 /* close existing connection */ | 771 /* close existing connection */ |
766 session->flags &= ~MXIT_FLAG_CONNECTED; | 772 session->flags &= ~MXIT_FLAG_CONNECTED; |
767 purple_proxy_connect_cancel_with_handle( session->con ); | 773 purple_proxy_connect_cancel_with_handle( session->con ); |
768 | 774 |
769 /* perform the re-connect */ | 775 /* perform the re-connect */ |