Mercurial > pidgin.yaz
diff libpurple/protocols/mxit/login.c @ 31747:02b510d2d014
* do not send requests too fast to the mxit server or they will start ignoring you.
author | pieter.loubser@mxit.com |
---|---|
date | Fri, 04 Feb 2011 09:13:46 +0000 |
parents | f995a9df914b |
children | 7c3b4002f46e |
line wrap: on
line diff
--- a/libpurple/protocols/mxit/login.c Wed Jan 26 09:36:58 2011 +0000 +++ b/libpurple/protocols/mxit/login.c Fri Feb 04 09:13:46 2011 +0000 @@ -84,7 +84,7 @@ session->iimages = g_hash_table_new( g_str_hash, g_str_equal ); session->rx_state = RX_STATE_RLEN; session->http_interval = MXIT_HTTP_POLL_MIN; - session->http_last_poll = time( NULL ); + session->http_last_poll = mxit_now_milli(); return session; } @@ -106,7 +106,7 @@ purple_connection_update_progress( session->con, _( "Logging In..." ), 2, 4 ); /* create a timer to send a ping packet if the connection is idle */ - session->last_tx = time( NULL ); + session->last_tx = mxit_now_milli(); /* encrypt the user password */ session->encpwd = mxit_encrypt_password( session ); @@ -143,7 +143,7 @@ /* 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 ); + session->q_timer = purple_timeout_add_seconds( 2, mxit_manage_queue_slow, session ); } }