called. Fixed crash in SILC Plugin.
nicklist (/NAMES etc). Affected file is
apps/irssi/src/silc/core/client_ops.c.
+ * Fixed SILC Plugin crash when stopping client library before
+ it has been started. Affected file is
+ apps/irssi/src/silc/core/silc-core.c.
+
Tue May 22 17:18:54 EEST 2007 Pekka Riikonen <priikone@silcnet.org>
* For SILC Client and SILC Server check for 1.1 Toolkit
#endif
static int idletag = -1;
+static int running = 0;
/* SILC Client */
SilcClient silc_client = NULL;
static void
silc_running(SilcClient client, void *context)
{
+ running = 1;
SILC_LOG_DEBUG(("Client library is running"));
}
if (idletag != -1)
g_source_remove(idletag);
- int stopped = 0;
- silc_client_stop(silc_client, silc_stopped, &stopped);
-
- while (!stopped)
- silc_client_run_one(silc_client);
+ if (running) {
+ int stopped = 0;
+ silc_client_stop(silc_client, silc_stopped, &stopped);
+ while (!stopped)
+ silc_client_run_one(silc_client);
+ }
if (opt_hostname)
silc_free(opt_hostname);