From b53ed9daedb1b4fbf04b39507de6c2c5d7a3cac3 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sat, 2 Oct 2010 18:11:03 +0100 Subject: [PATCH] [listener] Fall back to polling if IRC connection is dropped --- SparkleLib/SparkleListener.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/SparkleLib/SparkleListener.cs b/SparkleLib/SparkleListener.cs index 3b48a344..19c5b38c 100644 --- a/SparkleLib/SparkleListener.cs +++ b/SparkleLib/SparkleListener.cs @@ -25,6 +25,8 @@ namespace SparkleLib { public class SparkleListener { + // FIXME: The irc client is a public property because + // extending it causes crashes public IrcClient Client; private Thread Thread; public readonly string Server; @@ -46,10 +48,11 @@ namespace SparkleLib { Channel = "#sparkletest"; Server = "irc.gnome.org"; - Client = new IrcClient (); - -// PingTimeout = 90; -// SocketSendTimeout = 90; + Client = new IrcClient () { + PingTimeout = 90, + SocketSendTimeout = 90, + SocketReceiveTimeout = 90 + }; }