[listener] Fall back to polling if IRC connection is dropped
This commit is contained in:
parent
b6b2d65253
commit
f67f37a6e4
|
@ -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
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue