Bryan Drewery 21 yıl önce
ebeveyn
işleme
e4949383e2
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      src/main.c

+ 2 - 1
src/main.c

@@ -161,7 +161,8 @@ void fatal(const char *s, int recoverable)
 #endif /* HAVE_SSL */
 #endif /* HAVE_SSL */
 
 
 #ifdef HUB
 #ifdef HUB
-  listen_all(my_port, 1); /* close the listening port... */
+  if (my_port)
+    listen_all(my_port, 1); /* close the listening port... */
 #endif /* HUB */
 #endif /* HUB */
 
 
   for (int i = 0; i < dcc_total; i++)
   for (int i = 0; i < dcc_total; i++)