comparison src/protocols/oscar/txqueue.c @ 13256:7ead7b8aea63

[gaim-migrate @ 15622] Remove the latency code because 1. It uses sleep, which would block everything if it actually worked 2. It doesn't work because we don't use AIM_TX_IMMEDIATE instead of AIM_TX_QUEUED 3. I'm going to be getting rid of AIM_TX_IMMEDIATE and AIM_TX_QUEUED and will be using a GaimCircBuffer for transmission at all times committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 12 Feb 2006 22:21:08 +0000
parents 87a7c3077c19
children b08f8f3c9197
comparison
equal deleted inserted replaced
13255:f280bf585fb3 13256:7ead7b8aea63
257 continue; /* already been sent */ 257 continue; /* already been sent */
258 258
259 if (cur->conn && (cur->conn->status & AIM_CONN_STATUS_INPROGRESS)) 259 if (cur->conn && (cur->conn->status & AIM_CONN_STATUS_INPROGRESS))
260 continue; 260 continue;
261 261
262 /*
263 * And now for the meager attempt to force transmit
264 * latency and avoid missed messages.
265 */
266 if ((cur->conn->lastactivity + cur->conn->forcedlatency) >= time(NULL)) {
267 /*
268 * XXX should be a break! we don't want to block the
269 * upper layers
270 *
271 * XXX or better, just do this right.
272 *
273 */
274 sleep((cur->conn->lastactivity + cur->conn->forcedlatency) - time(NULL));
275 }
276
277 /* XXX this should call the custom "queuing" function!! */ 262 /* XXX this should call the custom "queuing" function!! */
278 aim_tx_sendframe(sess, cur); 263 aim_tx_sendframe(sess, cur);
279 } 264 }
280 265
281 /* purge sent commands from queue */ 266 /* purge sent commands from queue */