new vers.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user