Browse Source

svn: 3549

Bryan Drewery 18 years ago
parent
commit
795cf4d26b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main.c

+ 2 - 1
src/main.c

@@ -174,12 +174,13 @@ void fatal(const char *s, int recoverable)
   if (my_port)
   if (my_port)
     listen_all(my_port, 1); /* close the listening port... */
     listen_all(my_port, 1); /* close the listening port... */
 
 
-  for (int i = 0; i < dcc_total; i++)
+  for (int i = 0; i < dcc_total; i++) {
     sdprintf("Closing %d sockets", dcc_total);
     sdprintf("Closing %d sockets", dcc_total);
     if (dcc[i].type && dcc[i].sock >= 0) {
     if (dcc[i].type && dcc[i].sock >= 0) {
       killsock(dcc[i].sock);
       killsock(dcc[i].sock);
       lostdcc(i);
       lostdcc(i);
     }
     }
+  }
 
 
   if (!recoverable) {
   if (!recoverable) {
 //    if (conf.bot && conf.bot->pid_file)
 //    if (conf.bot && conf.bot->pid_file)