Mercurial > pidgin.yaz
diff libpurple/protocols/silc/silc.c @ 17699:2217b738a890
300 milliseconds apparently works on win32 for the SILC scheduler, let's
try this everywhere else too.
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Mon, 04 Jun 2007 02:46:05 +0000 |
parents | ae7a4134e499 |
children | 0f4a562b38d1 |
line wrap: on
line diff
--- a/libpurple/protocols/silc/silc.c Mon Jun 04 02:25:17 2007 +0000 +++ b/libpurple/protocols/silc/silc.c Mon Jun 04 02:46:05 2007 +0000 @@ -119,12 +119,12 @@ NULL, 0); } -static int +static gboolean silcpurple_scheduler(gpointer *context) { SilcPurple sg = (SilcPurple)context; silc_client_run_one(sg->client); - return 1; + return TRUE; } static void @@ -361,11 +361,7 @@ } /* Schedule SILC using Glib's event loop */ -#ifndef _WIN32 - sg->scheduler = g_timeout_add(50, (GSourceFunc)silcpurple_scheduler, sg); -#else sg->scheduler = g_timeout_add(300, (GSourceFunc)silcpurple_scheduler, sg); -#endif } static int