pidgin: 0462ae6a: This fixes a crash when attempting to re...
markdoliner at pidgin.im
markdoliner at pidgin.im
Sun Nov 22 13:41:09 EST 2009
-----------------------------------------------------------------
Revision: 0462ae6a305d43cfeacb4f4f442633f6a6fdf0cb
Ancestor: 48c01b8f3e78e30b7a04a09f6b92beecd2953c00
Author: markdoliner at pidgin.im
Date: 2009-11-22T18:38:31
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/0462ae6a305d43cfeacb4f4f442633f6a6fdf0cb
Modified files:
libpurple/protocols/mxit/login.c
ChangeLog:
This fixes a crash when attempting to register a new account and failing
because "Your cellphone number is invalid, please correct it and try again."
-------------- next part --------------
============================================================
--- libpurple/protocols/mxit/login.c bbe618b89c333a92a6b5a8bb2bbc33d0cd260fe4
+++ libpurple/protocols/mxit/login.c 0d0b5bd00861c8e7e39919e7325736574ceaf13a
@@ -142,8 +142,10 @@ static void mxit_connected( struct MXitS
session->http_timer_id = purple_timeout_add_seconds( 2, mxit_manage_polling, session );
}
- /* start the tx queue manager timer */
- session->q_timer = purple_timeout_add_seconds( 2, mxit_manage_queue, session );
+ /* This timer might already exist if we're registering a new account */
+ if ( session->q_timer == 0 )
+ /* start the tx queue manager timer */
+ session->q_timer = purple_timeout_add_seconds( 2, mxit_manage_queue, session );
}
More information about the Commits
mailing list