mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
make onChange synchronized (#12205)
Signed-off-by: Eugen Freiter <freiter@gmx.de> Co-authored-by: Eugen Freiter <freiter@gmx.de>
This commit is contained in:
parent
73b805b115
commit
fde78b3fea
@ -291,8 +291,8 @@ public class HomekitImpl implements Homekit, NetworkAddressChangeListener {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onChanged(final List<CidrAddress> added, final List<CidrAddress> removed) {
|
||||
logger.trace("restarting HomeKit bridge on network interface changes.");
|
||||
public synchronized void onChanged(final List<CidrAddress> added, final List<CidrAddress> removed) {
|
||||
logger.trace("HomeKit bridge reacting on network interface changes.");
|
||||
removed.forEach(i -> {
|
||||
logger.trace("removed interface {}", i.getAddress().toString());
|
||||
if (i.getAddress().equals(networkInterface)) {
|
||||
|
Loading…
Reference in New Issue
Block a user