git-svn-id: svn://db.shs.com.ru/pip@649 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2018-10-17 12:55:40 +00:00
parent 74a0743045
commit b8db3b5010
5 changed files with 19 additions and 11 deletions

View File

@@ -259,8 +259,10 @@ void PIBroadcast::mcastRead(uchar * data, int size) {
void PIBroadcast::run() {
PIVector<PIEthernet::Address> al = PIEthernet::allAddresses();
mcast_mutex.lock();
bool r = _reinit;
bool r = _reinit, ac = (al != prev_al);
mcast_mutex.unlock();
if (al != prev_al || r)
if (ac || r)
reinit();
if (ac)
addressesChanged();
}