Merge pull request #53 from michael-k/lastupdate

Update lastupdate only when fetching
This commit is contained in:
Jim Teeuwen 2014-11-28 15:14:48 +01:00
commit 21cabd67c6
1 changed files with 1 additions and 1 deletions

View File

@ -154,6 +154,7 @@ func (this *Feed) FetchClient(uri string, client *http.Client, charset xmlx.Char
return
}
this.lastupdate = time.Now().UTC().UnixNano()
this.Url = uri
doc := xmlx.New()
@ -250,7 +251,6 @@ func (this *Feed) CanUpdate() bool {
}
}
this.lastupdate = utc.UnixNano()
return true
}