diff --git a/src/rpc/src/rpcTcp.c b/src/rpc/src/rpcTcp.c index 1040877057c5e0b62c5053906b4d22de49e372aa..433ffe76b5856ca91ce21fb106bfca4bcfb36bc1 100644 --- a/src/rpc/src/rpcTcp.c +++ b/src/rpc/src/rpcTcp.c @@ -176,7 +176,7 @@ static void taosStopTcpThread(SThreadObj* pThreadObj) { // save thread and pollFd into local variable since pThreadObj will be freed when thread exits pthread_t thread = pThreadObj->thread; - int pollFd = pThreadObj->pollFd; + SOCKET pollFd = pThreadObj->pollFd; if (taosComparePthread(pThreadObj->thread, pthread_self())) { pthread_detach(pthread_self());