Added error message if there is an error while reading the tap #27

This commit is contained in:
Tony Kuker 2021-02-26 11:40:16 -06:00
parent 33f09490be
commit 994e90abac

View File

@ -288,6 +288,7 @@ int FASTCALL CTapDriver::Rx(BYTE *buf)
// Receive
dwReceived = read(m_hTAP, buf, ETH_FRAME_LEN);
if (dwReceived == (DWORD)-1) {
LOGWARN("%s Error occured while receiving an packet", __PRETTY_FUNCTION__);
return 0;
}