]> Pileus Git - grits/commitdiff
Force WMS to only update once
authorAndy Spencer <andy753421@gmail.com>
Mon, 8 Feb 2010 05:14:59 +0000 (05:14 +0000)
committerAndy Spencer <andy753421@gmail.com>
Mon, 8 Feb 2010 05:14:59 +0000 (05:14 +0000)
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

index 509a18ebb03ab8b0e770831071757b9a6e34b0f7..9d388625556a26d0028705cd73b8746fb31d6ae6 100644 (file)
@@ -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);