Kaynağa Gözat

while hibernating, hup should not regrow our listeners.

svn:r3067
Roger Dingledine 21 yıl önce
ebeveyn
işleme
f79a7d8d62
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/or/config.c

+ 1 - 1
src/or/config.c

@@ -337,7 +337,7 @@ options_act(void) {
   if (accounting_is_enabled(options))
     configure_accounting(time(NULL));
 
-  if (retry_all_listeners(1) < 0) {
+  if (!we_are_hibernating() && retry_all_listeners(1) < 0) {
     log_fn(LOG_ERR,"Failed to bind one of the listener ports.");
     return -1;
   }