diff --git a/src/modules/http/src/httpServer.c b/src/modules/http/src/httpServer.c index 5cf1bc6c38404c84cbcbc42a7b9bb43d988245bb..83f75adf2701496b8fe91b96d544ef988a702e81 100644 --- a/src/modules/http/src/httpServer.c +++ b/src/modules/http/src/httpServer.c @@ -183,7 +183,7 @@ void httpCloseContextByApp(HttpContext *pContext) { } pthread_mutex_lock(&pContext->mutex); - if (pContext->signature != pContext || pContext->fd <= 0) { + if (pContext->signature != pContext) { return; } @@ -212,7 +212,7 @@ void httpCloseContextByServer(HttpThread *pThread, HttpContext *pContext) { return; } pthread_mutex_lock(&pContext->mutex); - if (pContext->signature != pContext || pContext->fd <= 0) { + if (pContext->signature != pContext) { return; }