# HG changeset patch # User Mark Doliner # Date 1216707834 0 # Node ID d54e9afeac6aafaf0a7f7c8165f6cca4f62b8c95 # Parent bd0c0cffb6448eb252048b7272de4c62589b50ea 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. diff -r bd0c0cffb644 -r d54e9afeac6a libpurple/protocols/oscar/oscar.c --- 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); } } }