[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 14d75abb59
commit b53ed9daed

View file

@ -25,6 +25,8 @@ namespace SparkleLib {
public class SparkleListener public class SparkleListener
{ {
// FIXME: The irc client is a public property because
// extending it causes crashes
public IrcClient Client; public IrcClient Client;
private Thread Thread; private Thread Thread;
public readonly string Server; public readonly string Server;
@ -46,10 +48,11 @@ namespace SparkleLib {
Channel = "#sparkletest"; Channel = "#sparkletest";
Server = "irc.gnome.org"; Server = "irc.gnome.org";
Client = new IrcClient (); Client = new IrcClient () {
PingTimeout = 90,
// PingTimeout = 90; SocketSendTimeout = 90,
// SocketSendTimeout = 90; SocketReceiveTimeout = 90
};
} }