diff --git a/SparkleLib/SparkleRepo.cs b/SparkleLib/SparkleRepo.cs index 60e27946..d7bf1c29 100644 --- a/SparkleLib/SparkleRepo.cs +++ b/SparkleLib/SparkleRepo.cs @@ -40,17 +40,16 @@ namespace SparkleLib { private Timer remote_timer; private Timer local_timer; private FileSystemWatcher watcher; - private System.Object change_lock; private SparkleListenerBase listener; private List sizebuffer; - private bool has_changed; - private SyncStatus status; - + private bool has_changed = false; + private Object change_lock = new Object (); + protected SyncStatus status; protected string revision; - protected bool is_buffering; - protected bool is_polling; - protected bool server_online; + protected bool is_buffering = false; + protected bool is_polling = true; + protected bool server_online = true; public readonly SparkleBackend Backend; @@ -157,12 +156,6 @@ namespace SparkleLib { Name = Path.GetFileName (LocalPath); Backend = backend; - this.is_buffering = false; - this.is_polling = true; - this.server_online = true; - this.has_changed = false; - this.change_lock = new Object (); - SyncStatusChanged += delegate (SyncStatus status) { this.status = status; };