[listener] Fall back to polling if IRC connection is dropped

This commit is contained in:
Hylke Bons 2010-10-02 18:11:03 +01:00
parent b6b2d65253
commit f67f37a6e4

View file

@ -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
};
}