changeset 23585:d54e9afeac6a

Evan pointed out that this is purple_timeout_add_SECONDS, and so that "2" is actually significant, and we could receive more oncoming SNACs before the callback is triggered, and so it makes sense to wait a little longer to increase the amount of coalescing.
author Mark Doliner <mark@kingant.net>
date Tue, 22 Jul 2008 06:23:54 +0000
parents bd0c0cffb644
children ad7f01935fa4
files libpurple/protocols/oscar/oscar.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c	Mon Jul 21 20:36:07 2008 +0000
+++ b/libpurple/protocols/oscar/oscar.c	Tue Jul 22 06:23:54 2008 +0000
@@ -2124,9 +2124,10 @@
 					od->statusnotes_queue = g_slist_prepend(od->statusnotes_queue,
 							g_strdup(info->sn));
 
-					if (od->statusnotes_queue_timer == 0)
-						od->statusnotes_queue_timer = purple_timeout_add_seconds(2,
-								purple_requesticqstatusnote, gc);
+					if (od->statusnotes_queue_timer > 0)
+						purple_timeout_remove(od->statusnotes_queue_timer);
+					od->statusnotes_queue_timer = purple_timeout_add_seconds(2,
+							purple_requesticqstatusnote, gc);
 				}
 			}
 		}