cut out a warning that doesn't need to warn

svn:r5252
This commit is contained in:
Roger Dingledine 2005-10-16 19:47:01 +00:00
parent 2a82182243
commit aca6fb5f5f

View File

@ -983,15 +983,13 @@ do_hup(void)
/* Write out a fresh descriptor, but leave old one on failure. */ /* Write out a fresh descriptor, but leave old one on failure. */
router_rebuild_descriptor(1); router_rebuild_descriptor(1);
descriptor = router_get_my_descriptor(); descriptor = router_get_my_descriptor();
if (!descriptor) { if (descriptor) {
log_fn(LOG_WARN,"No descriptor to save."); tor_snprintf(keydir,sizeof(keydir),"%s/router.desc",
return 0; options->DataDirectory);
} log_fn(LOG_INFO,"Saving descriptor to \"%s\"...",keydir);
tor_snprintf(keydir,sizeof(keydir),"%s/router.desc", if (write_str_to_file(keydir, descriptor, 0)) {
options->DataDirectory); return 0;
log_fn(LOG_INFO,"Saving descriptor to \"%s\"...",keydir); }
if (write_str_to_file(keydir, descriptor, 0)) {
return 0;
} }
} }
return 0; return 0;