From: Andy Spencer Date: Mon, 8 Feb 2010 05:14:59 +0000 (+0000) Subject: Force WMS to only update once X-Git-Tag: v0.4~73 X-Git-Url: http://pileus.org/git/?p=grits;a=commitdiff_plain;h=3b7e4136d6f8442c80c617581e3e83f30afdcdb1 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. --- 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);