new vers.

This commit is contained in:
zolliker
2005-06-29 14:15:53 +00:00
parent a4d9b5e5cf
commit 371ec68262
10 changed files with 61 additions and 19 deletions

View File

@@ -649,13 +649,15 @@ int CocHandleRequests(int tmo_msec, int fd) {
void CocCloseServer() {
CocClient *cl, *cl0;
cl=cList->next;
while (cl!=NULL) {
close(cl->fd);
cl0=cl;
cl=cl->next;
FREE(cl0);
if (cList) {
cl=cList->next;
while (cl!=NULL) {
close(cl->fd);
cl0=cl;
cl=cl->next;
FREE(cl0);
}
FREE(cList);
}
FREE(cList);
close(mainFd);
}