fix the issue #513

This commit is contained in:
slguan 2019-09-16 17:50:39 +08:00
parent 1a718fbc7a
commit 23f07aa1a8
1 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ void httpCloseContextByApp(HttpContext *pContext) {
} }
pthread_mutex_lock(&pContext->mutex); pthread_mutex_lock(&pContext->mutex);
if (pContext->signature != pContext || pContext->fd <= 0) { if (pContext->signature != pContext) {
return; return;
} }
@ -212,7 +212,7 @@ void httpCloseContextByServer(HttpThread *pThread, HttpContext *pContext) {
return; return;
} }
pthread_mutex_lock(&pContext->mutex); pthread_mutex_lock(&pContext->mutex);
if (pContext->signature != pContext || pContext->fd <= 0) { if (pContext->signature != pContext) {
return; return;
} }