Fix #266: CloseHandle close an invalid handle

This commit is contained in:
yuanyuanxiang
2025-12-26 15:57:27 +01:00
parent 02d86f6ce7
commit 34e7cdb663
33 changed files with 171 additions and 161 deletions

View File

@@ -152,7 +152,7 @@ IOCPClient::~IOCPClient()
Disconnect();
if (m_hWorkThread!=NULL) {
CloseHandle(m_hWorkThread);
SAFE_CLOSE_HANDLE(m_hWorkThread);
m_hWorkThread = NULL;
}