]> git.street.me.uk Git - andy/viking.git/commitdiff
Fix: SF#3042692 - Tiles May Get Deleted During Offline Usage.
authorRob Norris <rw_norris@hotmail.com>
Sun, 11 Sep 2011 16:54:32 +0000 (17:54 +0100)
committerRob Norris <rw_norris@hotmail.com>
Sun, 11 Sep 2011 16:54:50 +0000 (17:54 +0100)
Reapply part of previous commit '4945e425d481ca7b9a4c6e00a8e11bff79d254a4' which seems to have gone missing (possibly as result of the merge 'jocelyn/etag' in commit 'c017be3c0b41865d049c8f09d09b7026fd848f13')
Fix bug where older file was removed when network not present.

src/download.c

index dd129d2d5164dc24cbc2d53e2fde75d596798852..f68b7b7bad8db6b1ec7c8439f173ebed76c6c8f2 100644 (file)
@@ -238,7 +238,6 @@ static int download( const char *hostname, const char *uri, const char *fn, Down
       g_free ( file_options.etag );
       g_free ( file_options.new_etag );
     }
-    g_remove ( fn ); /* couldn't create temporary. delete 0-byte file. */
     return -1;
   }