diff 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
line wrap: on
line diff
--- a/src/protocols/oscar/txqueue.c	Sun Feb 12 22:15:12 2006 +0000
+++ b/src/protocols/oscar/txqueue.c	Sun Feb 12 22:21:08 2006 +0000
@@ -259,21 +259,6 @@
 		if (cur->conn && (cur->conn->status & AIM_CONN_STATUS_INPROGRESS))
 			continue;
 
-		/*
-		 * And now for the meager attempt to force transmit
-		 * latency and avoid missed messages.
-		 */
-		if ((cur->conn->lastactivity + cur->conn->forcedlatency) >= time(NULL)) {
-			/*
-			 * XXX should be a break! we don't want to block the
-			 * upper layers
-			 *
-			 * XXX or better, just do this right.
-			 *
-			 */
-			sleep((cur->conn->lastactivity + cur->conn->forcedlatency) - time(NULL));
-		}
-
 		/* XXX this should call the custom "queuing" function!! */
 		aim_tx_sendframe(sess, cur);
 	}