瀏覽代碼

* Delete the domain socket file on fatal()

Bryan Drewery 17 年之前
父節點
當前提交
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) {