From c071a0b5dddbea30ed2a6222ef9d31ae6716542d Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Thu, 1 May 2014 14:32:46 +0200 Subject: Fixed updaters. If, for some reasons, startpage could not gather new data before, nil data would have been stored, leaving the startpage mostly blank and useless. --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index d6d52b1..27a5ab6 100644 --- a/main.go +++ b/main.go @@ -27,8 +27,9 @@ func earthPornUpdater(ch chan bool) { for _ = range ch { newporn, err := GetEarthPorn() if err != nil { - log.Printf("Failed getting fap material: %s", err) + log.Print(err) go trylater(ch) + continue } porn = newporn @@ -42,6 +43,7 @@ func weatherUpdater(ch chan bool) { if err != nil { log.Printf("Failed getting latest weather data: %s", err) go trylater(ch) + continue } weather = newW -- cgit v1.2.3-54-g00ecf