close soket after FD is removed from fd set

This commit is contained in:
jtao1735 2020-04-22 10:07:32 +00:00
parent 404da490d5
commit 3410fef484
1 changed files with 1 additions and 1 deletions

View File

@ -466,8 +466,8 @@ static void taosFreeFdObj(SFdObj *pFdObj) {
}
pFdObj->signature = NULL;
close(pFdObj->fd);
epoll_ctl(pThreadObj->pollFd, EPOLL_CTL_DEL, pFdObj->fd, NULL);
close(pFdObj->fd);
pThreadObj->numOfFds--;