cpw.darkrain42.irc: 398e9b8f: Try (a little) to make these timers neve...
darkrain42 at pidgin.im
darkrain42 at pidgin.im
Mon Jul 13 00:15:57 EDT 2009
-----------------------------------------------------------------
Revision: 398e9b8fdc6ba6418b919bd3705b5ad102c3e2c0
Ancestor: ab0701cb7b693759b1163133f4bb0681cca85436
Author: darkrain42 at pidgin.im
Date: 2009-07-13T02:33:31
Branch: im.pidgin.cpw.darkrain42.irc
URL: http://d.pidgin.im/viewmtn/revision/info/398e9b8fdc6ba6418b919bd3705b5ad102c3e2c0
Modified files:
libpurple/protocols/irc/msgs.c
ChangeLog:
Try (a little) to make these timers never fire concurrently
-------------- next part --------------
============================================================
--- libpurple/protocols/irc/msgs.c 13a0367182929f542821fff1fd15cae0313c7901
+++ libpurple/protocols/irc/msgs.c 09951cfe70ac9191ac758360483a9b8caa26c34f
@@ -107,10 +107,11 @@ static void irc_connected(struct irc_con
}
irc_blist_timeout(irc);
+ /* Timeout values chosen to be vaguely unlikely to simultaneously fire */
if (!irc->timer)
- irc->timer = purple_timeout_add_seconds(45, (GSourceFunc)irc_blist_timeout, (gpointer)irc);
+ irc->timer = purple_timeout_add_seconds(47, (GSourceFunc)irc_blist_timeout, (gpointer)irc);
if (!irc->who_channel_timer)
- irc->who_channel_timer = purple_timeout_add_seconds(300, (GSourceFunc)irc_who_channel_timeout, (gpointer)irc);
+ irc->who_channel_timer = purple_timeout_add_seconds(307, (GSourceFunc)irc_who_channel_timeout, (gpointer)irc);
}
void irc_msg_default(struct irc_conn *irc, const char *name, const char *from, char **args)
More information about the Commits
mailing list