# HG changeset patch # User Mark Doliner # Date 1258915111 0 # Node ID 97900b3b55ca4c148d33d5c7a184fb13e39d8202 # Parent 7d0b473f22959c4b1f72b837014c65cde7a7ac9d 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." diff -r 7d0b473f2295 -r 97900b3b55ca libpurple/protocols/mxit/login.c --- a/libpurple/protocols/mxit/login.c Sun Nov 22 18:22:18 2009 +0000 +++ b/libpurple/protocols/mxit/login.c Sun Nov 22 18:38:31 2009 +0000 @@ -142,8 +142,10 @@ 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 ); }