mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
cut out a warning that doesn't need to warn
svn:r5252
This commit is contained in:
parent
2a82182243
commit
aca6fb5f5f
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user