mirror of https://github.com/acidanthera/audk.git
Fixed one bug when calculating timeout value in timeout function for UDP protocol.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6763 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
abf1c3e47f
commit
0891b0a2cb
|
@ -451,13 +451,13 @@ Udp4CheckTimeout (
|
|||
//
|
||||
Wrap = NET_LIST_USER_STRUCT (WrapEntry, UDP4_RXDATA_WRAP, Link);
|
||||
|
||||
if (Wrap->TimeoutTick <= UDP4_TIMEOUT_INTERVAL / 1000) {
|
||||
if (Wrap->TimeoutTick <= UDP4_TIMEOUT_INTERVAL / 10) {
|
||||
//
|
||||
// Remove this RxData if it timeouts.
|
||||
//
|
||||
Udp4RecycleRxDataWrap (NULL, (VOID *) Wrap);
|
||||
} else {
|
||||
Wrap->TimeoutTick -= UDP4_TIMEOUT_INTERVAL / 1000;
|
||||
Wrap->TimeoutTick -= UDP4_TIMEOUT_INTERVAL / 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue