فهرست منبع

* Port [3184] to 1.2.14
* Fix killsock() warning when removing hubs.



svn: 3185

Bryan Drewery 19 سال پیش
والد
کامیت
d75b612c84
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      src/userrec.c

+ 3 - 1
src/userrec.c

@@ -649,7 +649,9 @@ int deluser(char *handle)
         if (i != -1 && !egg_strcasecmp(dcc[i].nick, handle))
           botunlink(-1, handle, "Bot removed.");
         else { /* This will probably never be called -- but just in case */
-          killsock(dcc[fnd].sock);
+          /* Kill link in attempt/progress */
+          if (dcc[fnd].sock != -1)
+            killsock(dcc[fnd].sock);
           lostdcc(fnd);
         }
       } else if (!u->bot) {