Patch by Adrian Panasiuk: Initialize the renewal time before starting the message runner. This fixes a timing race that would trigger on some DHCP servers and result in constant renewal requests (Ticket #2531). Thanks!

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28817 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2008-12-19 22:47:41 +00:00
parent 8fcbae95c7
commit 168cc3df42

View File

@ -569,9 +569,9 @@ DHCPClient::_Negotiate(dhcp_state state)
if (fRebindingTime == 0)
fRebindingTime = fLeaseTime * 5/6;
bigtime_t now = system_time();
_RestartLease(fRenewalTime);
bigtime_t now = system_time();
fLeaseTime += now;
fRenewalTime += now;
fRebindingTime += now;