repo: Fix some cases where the remote timer isn't resumed
This commit is contained in:
parent
063b38ff28
commit
7896abfcdf
|
@ -229,17 +229,20 @@ namespace SparkleLib {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
lock (this.change_lock) {
|
lock (this.change_lock) {
|
||||||
|
this.remote_timer.Stop ();
|
||||||
|
|
||||||
string relative_path = args.FullPath.Replace (LocalPath, "");
|
string relative_path = args.FullPath.Replace (LocalPath, "");
|
||||||
|
|
||||||
foreach (string exclude_path in ExcludePaths) {
|
foreach (string exclude_path in ExcludePaths) {
|
||||||
if (relative_path.Contains (exclude_path))
|
if (relative_path.Contains (exclude_path)) {
|
||||||
|
this.remote_timer.Start ();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!IsBuffering && HasLocalChanges) {
|
if (!IsBuffering && HasLocalChanges) {
|
||||||
IsBuffering = true;
|
IsBuffering = true;
|
||||||
this.watcher.Disable ();
|
this.watcher.Disable ();
|
||||||
this.remote_timer.Stop ();
|
|
||||||
|
|
||||||
SparkleHelpers.DebugInfo ("Local", Name + " | Activity detected, waiting for it to settle...");
|
SparkleHelpers.DebugInfo ("Local", Name + " | Activity detected, waiting for it to settle...");
|
||||||
|
|
||||||
|
@ -274,6 +277,8 @@ namespace SparkleLib {
|
||||||
|
|
||||||
} while (IsBuffering);
|
} while (IsBuffering);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.remote_timer.Start ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue