Просмотр исходного кода

* Delete the domain socket file on fatal()

Bryan Drewery 16 лет назад
Родитель
Сommit
5b706f3d0e
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      src/main.c

+ 3 - 0
src/main.c

@@ -191,6 +191,9 @@ void fatal(const char *s, int recoverable)
   if (my_port)
     listen_all(my_port, 1); /* close the listening port... */
 
+  if (conf.bot->localhub)
+    unlink(conf.localhub_socket);
+
   sdprintf(STR("Closing %d sockets"), dcc_total);
   for (int i = 0; i < dcc_total; i++) {
     if (dcc[i].type && dcc[i].sock >= 0) {