[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
|
||||
{
|
||||
|
||||
// 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
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue