repo: don't poll every 10sec when disconnected
This commit is contained in:
parent
a5ac4ab5fa
commit
057c96c288
|
@ -98,7 +98,7 @@ namespace SparkleLib {
|
|||
bool time_to_poll = (DateTime.Compare (this.last_poll,
|
||||
DateTime.Now.Subtract (this.poll_interval)) < 0);
|
||||
|
||||
if (!this.listener.IsConnected || time_to_poll) {
|
||||
if (time_to_poll) {
|
||||
this.last_poll = DateTime.Now;
|
||||
|
||||
if (CheckForRemoteChanges ())
|
||||
|
|
Loading…
Reference in a new issue