]> err.no Git - mapper/commitdiff
Small fix to skip for 30 secs if nothing found logic
authorKaj-Michael Lang <milang@tal.org>
Fri, 21 Mar 2008 18:50:55 +0000 (20:50 +0200)
committerKaj-Michael Lang <milang@tal.org>
Fri, 21 Mar 2008 18:50:55 +0000 (20:50 +0200)
src/osm-db.c

index 1e3a2d9952b273faf73e3c94389aa44bf6c78672..055022603e5c7fa9fb19d81ff44489aa7dbe23b5 100644 (file)
@@ -1026,7 +1026,8 @@ if (map_loc->nfcnt>10) {
                g_debug("Here be dragons");
                return FALSE;
        } else {
-               map_loc->last_valid=0;
+               g_debug("Trying again");
+               map_loc->last_valid=time(NULL);
                map_loc->nfcnt=0;
                map_loc->valid=FALSE;
        }