From 3b7e4136d6f8442c80c617581e3e83f30afdcdb1 Mon Sep 17 00:00:00 2001 From: Andy Spencer Date: Mon, 8 Feb 2010 05:14:59 +0000 Subject: [PATCH] Force WMS to only update once This can cause problems with halfway downloaded files. In the future it would be better to save partially downloaded data into a .part file and the continue that even with GIS_ONCE. --- src/data/gis-wms.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/data/gis-wms.c b/src/data/gis-wms.c index 509a18e..9d38862 100644 --- a/src/data/gis-wms.c +++ b/src/data/gis-wms.c @@ -96,6 +96,7 @@ gchar *gis_wms_fetch(GisWms *self, GisTile *tile, GisCacheType mode, gchar *uri = _make_uri(self, tile); gchar *tilep = gis_tile_get_path(tile); gchar *local = g_strdup_printf("%s%s", tilep, self->extension); + mode = GIS_ONCE; gchar *path = gis_http_fetch(self->http, uri, local, mode, callback, user_data); g_free(uri); -- 2.43.2