From 4840ef15a3d6d5a6d4be9374962ccd20ce2511b5 Mon Sep 17 00:00:00 2001 From: Michael K Date: Fri, 28 Nov 2014 14:55:38 +0100 Subject: [PATCH] Update lastupdate only when fetching --- feed.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feed.go b/feed.go index bab17f5..6a15364 100644 --- a/feed.go +++ b/feed.go @@ -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 }