mirror of https://github.com/PCSX2/pcsx2.git
DEV9: Fix handling of ICMP timeout
This commit is contained in:
parent
b6b775e44e
commit
a1a92920b2
|
@ -189,8 +189,16 @@ namespace Sessions
|
|||
{
|
||||
ResetEvent(icmpEvent);
|
||||
|
||||
[[maybe_unused]] int count = IcmpParseReplies(icmpResponseBuffer.get(), icmpResponseBufferLen);
|
||||
pxAssert(count == 1);
|
||||
int count = IcmpParseReplies(icmpResponseBuffer.get(), icmpResponseBufferLen);
|
||||
pxAssert(count <= 1);
|
||||
|
||||
// Timeout
|
||||
if (count == 0)
|
||||
{
|
||||
result.type = -2;
|
||||
result.code = 0;
|
||||
return &result;
|
||||
}
|
||||
|
||||
// Rely on implicit object creation
|
||||
ICMP_ECHO_REPLY* pingRet = reinterpret_cast<ICMP_ECHO_REPLY*>(icmpResponseBuffer.get());
|
||||
|
|
Loading…
Reference in New Issue