Store the active flag if there is an initial link.

This ensures that we don't spuriously re-detect a link if we have a
race between starting to watch for link state changes and detecting the
initial link.
This commit is contained in:
Michael Lotz
2013-04-02 03:16:06 +02:00
parent 274b8be6c4
commit e484cc5098
+4
View File
@@ -130,6 +130,10 @@ AutoconfigLooper::_ReadyToRun()
if (interface.HasLink()) {
_ConfigureIPv4();
//_ConfigureIPv6(); // TODO: router advertisement and dhcpv6
// Also make sure we don't spuriously try to configure again from
// a link changed notification that might race us.
fLastMediaStatus |= IFM_ACTIVE;
}
}