changeset 17474: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 8ff4b838790a
children 9187a19d72a7 4b18cc7b6177
files libpurple/protocols/silc/silc.c
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
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