Author: Isomer <isomer@coders.net>
[ircu2.10.12-pk.git] / ircd / list.c
index 275062ee331ff421789aedb69b789f2cf5b4cdcd..fb86192e2b9ea85bd776038586eefcdec9f646f3 100644 (file)
@@ -126,8 +126,10 @@ void free_client(struct Client *cptr)
      */
     if (cptr->dns_reply)
       --cptr->dns_reply->ref_count;
-    if (-1 < cptr->fd)
+    if (-1 < cptr->fd) {
+      ip_registry_local_disconnect(cptr);
       close(cptr->fd);
+    }
     DBufClear(&cptr->sendQ);
     DBufClear(&cptr->recvQ);
     if (cptr->listener)