don't build and upload a new desc twice in a row

svn:r1691
This commit is contained in:
Roger Dingledine 2004-04-25 05:19:03 +00:00
parent e355ed0e15
commit 7fbc35c136

View File

@ -75,11 +75,6 @@ void rotate_onion_key(void)
*/
lastonionkey = onionkey;
set_onion_key(prkey);
if (router_rebuild_descriptor() <0) {
goto error;
}
router_upload_dir_desc_to_dirservers();
/* Mark all CPU workers to close. */
return;
error:
log_fn(LOG_WARN, "Couldn't rotate onion key.");