From 23f07aa1a8574a880872272a004a6d3a84dd0c2a Mon Sep 17 00:00:00 2001 From: slguan Date: Mon, 16 Sep 2019 17:50:39 +0800 Subject: [PATCH] fix the issue #513 --- src/modules/http/src/httpServer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/http/src/httpServer.c b/src/modules/http/src/httpServer.c index 5cf1bc6c38..83f75adf27 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; } -- GitLab