Stop trying to refresh when we are out of data.

svn:r6647
This commit is contained in:
Nick Mathewson 2006-06-18 08:19:35 +00:00
parent b9013cbe98
commit 4d02ccfed8

View File

@ -1789,6 +1789,7 @@ connection_dirserv_add_servers_to_outbuf(connection_t *conn)
}
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_outbuf(connection_t *conn)
}
cached_dir_decref(conn->cached_dir);
conn->cached_dir = NULL;
conn->dir_refresh_src = DIR_REFRESH_NONE;
}
return 0;
}