Mercurial > pidgin
diff libpurple/protocols/mxit/mxit.c @ 31298: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 | bcc22eeaf3fa |
children | 8cddae054791 |
line wrap: on
line diff
--- a/libpurple/protocols/mxit/mxit.c Wed Jan 26 09:36:58 2011 +0000 +++ b/libpurple/protocols/mxit/mxit.c Fri Feb 04 09:13:46 2011 +0000 @@ -525,7 +525,7 @@ if ( session->http ) return; - if ( session->last_tx <= time( NULL ) - MXIT_PING_INTERVAL ) { + if ( session->last_tx <= ( mxit_now_milli() - ( MXIT_PING_INTERVAL * 1000 ) ) ) { /* * this connection has been idle for too long, better ping * the server before it kills our connection.