From: Pekka Riikonen Date: Sat, 30 Jun 2007 18:56:09 +0000 (+0000) Subject: Handle also zero timeouts. X-Git-Tag: silc.trunk.merged.silc.1.1.branch.0~9 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=ffaa3e071447e6200fa87b17538e77858e74e08c Handle also zero timeouts. --- diff --git a/CHANGES b/CHANGES index e34ca8a8..6bbd5c33 100644 --- a/CHANGES +++ b/CHANGES @@ -4,6 +4,10 @@ Sat Jun 30 21:48:08 EEST 2007 Pekka Riikonen if ID was present in key exchange packet. Affected file is lib/silcske/silcske.[ch]. + * Handle also zero timeouts in the scheduler notify callback + to avoid problems with SILC Plugin. Affected file is + apps/irssi/src/silc/core/silc-core.c. + Thu Jun 28 19:19:13 EEST 2007 Pekka Riikonen * SILC Client 1.1.1. diff --git a/apps/irssi/src/silc/core/silc-core.c b/apps/irssi/src/silc/core/silc-core.c index 4385a2a2..8b6f9f74 100644 --- a/apps/irssi/src/silc/core/silc-core.c +++ b/apps/irssi/src/silc/core/silc-core.c @@ -122,11 +122,6 @@ static void scheduler_notify_cb(SilcSchedule schedule, /* Add timeout */ guint t; - /* Zero timeouts are delievered always immediately, as per - SilcSchedule API documentation, no need to add them to glib. */ - if (!seconds && !useconds) - return; - t = (seconds * 1000) + (useconds / 1000); SILC_LOG_DEBUG(("interval %d msec", t)); g_timeout_add(t, my_silc_scheduler, NULL);