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,10 +983,7 @@ 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.");
return 0;
}
tor_snprintf(keydir,sizeof(keydir),"%s/router.desc", tor_snprintf(keydir,sizeof(keydir),"%s/router.desc",
options->DataDirectory); options->DataDirectory);
log_fn(LOG_INFO,"Saving descriptor to \"%s\"...",keydir); log_fn(LOG_INFO,"Saving descriptor to \"%s\"...",keydir);
@ -994,6 +991,7 @@ do_hup(void)
return 0; return 0;
} }
} }
}
return 0; return 0;
} }