also update configured devices' status, but ignore the loopback interface.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20525 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
90d110b64c
commit
a3e4e4f762
@ -873,7 +873,8 @@ NetServer::_ConfigureInterfaces(int socket, BMessage* _missingDevice)
|
||||
}
|
||||
}
|
||||
|
||||
_ConfigureInterface(socket, interface);
|
||||
if (_ConfigureInterface(socket, interface) == B_OK)
|
||||
_UpdateDeviceStatus(device, kStatusConnected);
|
||||
}
|
||||
}
|
||||
|
||||
@ -962,6 +963,9 @@ NetServer::_AddStatusReplicant(bool force)
|
||||
void
|
||||
NetServer::_UpdateDeviceStatus(const char *device, int status)
|
||||
{
|
||||
if (strcmp(device, "loop") == 0)
|
||||
return;
|
||||
|
||||
StatusMap::iterator it = fStatusMap.find(device);
|
||||
if (it != fStatusMap.end() && it->second == status)
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user