From 1b3e2054cf494bca508da726ad4e59eb02634f1d Mon Sep 17 00:00:00 2001 From: Thomas Rudin Date: Sun, 27 Jan 2019 18:54:09 +0100 Subject: [PATCH] mtime save order --- server/tilerendererjob/incremental.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/tilerendererjob/incremental.go b/server/tilerendererjob/incremental.go index c727a7d..89ae14d 100644 --- a/server/tilerendererjob/incremental.go +++ b/server/tilerendererjob/incremental.go @@ -26,14 +26,14 @@ func incrementalRender(ctx *app.App, jobs chan *coords.TileCoords) { panic(err) } - rstate.LastMtime = result.LastMtime - ctx.Config.Save() - - if len(result.List) == 0 { + if len(result.List) == 0 && !result.HasMore { time.Sleep(5 * time.Second) continue } + rstate.LastMtime = result.LastMtime + ctx.Config.Save() + tiles := renderMapblocks(ctx, jobs, result.List) t := time.Now()