浏览代码

* Fixed a bot timeout/eof double killsock

svn: 1170
Bryan Drewery 22 年之前
父节点
当前提交
6b0dbf7e24
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/dcc.c

+ 2 - 1
src/dcc.c

@@ -264,7 +264,8 @@ failed_link(int idx)
   }
   if (dcc[idx].u.bot->numver >= (-1))
     putlog(LOG_BOTS, "*", DCC_LINKFAIL, dcc[idx].nick);
-  killsock(dcc[idx].sock);
+  if (dcc[idx].sock != -1)
+    killsock(dcc[idx].sock);
   strcpy(s, dcc[idx].nick);
   lostdcc(idx);
   autolink_cycle(s);            /* Check for more auto-connections */