Bryan Drewery 21 tahun lalu
induk
melakukan
e4949383e2
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  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++)