[repo][listener] look for changes on startup
This commit is contained in:
parent
ef40cdd8fe
commit
080e3544ed
|
@ -39,6 +39,9 @@ namespace SparkleLib {
|
|||
Nick = nick.Replace ("@", "_at_").Replace (".", "_dot_");
|
||||
Port = 6667;
|
||||
|
||||
if (Nick.Length > 9)
|
||||
Nick = Nick.Substring (0, 9);
|
||||
|
||||
// TODO: Remove these hardcoded values
|
||||
Channel = "#sparkletest";
|
||||
Server = "irc.gnome.org";
|
||||
|
@ -58,6 +61,9 @@ namespace SparkleLib {
|
|||
|
||||
try {
|
||||
|
||||
Thread thread = new Thread (
|
||||
new ThreadStart (delegate {
|
||||
|
||||
// Connect to the server
|
||||
Client.Connect (new string [] {Server}, Port);
|
||||
|
||||
|
@ -67,9 +73,10 @@ namespace SparkleLib {
|
|||
// Join the channel
|
||||
Client.RfcJoin (Channel);
|
||||
|
||||
Thread thread = new Thread (
|
||||
new ThreadStart (delegate {
|
||||
Client.Listen ();
|
||||
|
||||
Client.Disconnect ();
|
||||
|
||||
})
|
||||
);
|
||||
|
||||
|
|
|
@ -212,6 +212,7 @@ namespace SparkleLib {
|
|||
|
||||
LocalTimer.Start ();
|
||||
|
||||
CheckForRemoteChanges ();
|
||||
|
||||
// Add everything that changed
|
||||
// since SparkleShare was stopped
|
||||
|
|
Loading…
Reference in a new issue