|
@@ -178,7 +178,7 @@ WaitRetPkg:
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- auto pkg = ReceivePackage(1000);
|
|
|
+ auto pkg = ReceivePackage(10);
|
|
|
if (pkg == NULL)
|
|
|
{
|
|
|
if (m_eState == State_Connecting)
|
|
@@ -756,9 +756,7 @@ CSmartPointer<IPackage> CClientComm::ReceivePackage(int nWaitSecond)
|
|
|
::InterlockedExchange(&m_nSyncWaitResult, 1);
|
|
|
|
|
|
if (m_RecvPackages.size() == 0)
|
|
|
- {
|
|
|
dwWaitResult = WaitForSingleObject(m_hRecvEvent, nWaitSecond * 1000);
|
|
|
- }
|
|
|
|
|
|
if (dwWaitResult == WAIT_OBJECT_0 && (m_eState == State_OK || m_eState == State_Connecting))
|
|
|
{
|