]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make directory caches a little less chatty when logging
authorNick Mathewson <nickm@torproject.org>
Tue, 27 Dec 2005 06:05:54 +0000 (06:05 +0000)
committerNick Mathewson <nickm@torproject.org>
Tue, 27 Dec 2005 06:05:54 +0000 (06:05 +0000)
svn:r5662

src/or/routerlist.c

index 7fc1808b4d4392d231f2ef37ebd74a2f359ed6dc..a2336f87634ca6d90539abc197b7a8791345cee7 100644 (file)
@@ -3448,6 +3448,8 @@ update_router_descriptor_cache_downloads(time_t now)
       continue;
     }
     smartlist_t *dl = download_from[i];
+    if (! smartlist_len(dl))
+      continue;
     info(LD_DIR, "Requesting %d descriptors from authority \"%s\"",
          smartlist_len(dl), ds->nickname);
     for (j=0; j < smartlist_len(dl); j += MAX_DL_PER_REQUEST) {