repo: don't poll every 10sec when disconnected

This commit is contained in:
Hylke Bons 2011-06-09 23:59:56 +01:00
parent 911a1f941a
commit a07e0a6b8d

View file

@ -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 ())