[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Stop trying to refresh when we are out of data.



Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv9671/src/or

Modified Files:
	dirserv.c 
Log Message:
Stop trying to refresh when we are out of data.

Index: dirserv.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/dirserv.c,v
retrieving revision 1.336
retrieving revision 1.337
diff -u -p -d -r1.336 -r1.337
--- dirserv.c	18 Jun 2006 08:07:16 -0000	1.336
+++ dirserv.c	18 Jun 2006 08:19:35 -0000	1.337
@@ -1789,6 +1789,7 @@ connection_dirserv_add_servers_to_outbuf
     }
     smartlist_free(conn->fingerprint_stack);
     conn->fingerprint_stack = NULL;
+    conn->dir_refresh_src = DIR_REFRESH_NONE;
   }
   return 0;
 }
@@ -1825,6 +1826,7 @@ connection_dirserv_add_dir_bytes_to_outb
     }
     cached_dir_decref(conn->cached_dir);
     conn->cached_dir = NULL;
+    conn->dir_refresh_src = DIR_REFRESH_NONE;
   }
   return 0;
 }