fix the issue #513
This commit is contained in:
parent
1a718fbc7a
commit
23f07aa1a8
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue