Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Bauer committed Nov 5, 2014
1 parent 04de9e7 commit a0bc7c3
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,15 +217,15 @@ protected void describe(String descriptorXML) throws RouterException {
new DescriptorBindingException("Device service description failed: " + rd)
);
return;
} else {
log.fine("Adding fully hydrated remote device to registry: " + hydratedDevice);
// The registry will do the right thing: A new root device is going to be added, if it's
// already present or we just received the descriptor again (because we got an embedded
// devices' notification), it will simply update the expiration timestamp of the root
// device.
getUpnpService().getRegistry().addDevice(hydratedDevice);
}

log.fine("Adding fully hydrated remote device to registry: " + hydratedDevice);
// The registry will do the right thing: A new root device is going to be added, if it's
// already present or we just received the descriptor again (because we got an embedded
// devices' notification), it will simply update the expiration timestamp of the root
// device.
getUpnpService().getRegistry().addDevice(hydratedDevice);

} catch (ValidationException ex) {
// Avoid error log spam each time device is discovered, errors are logged once per device.
if(!errorsAlreadyLogged.contains(rd.getIdentity().getUdn())) {
Expand Down

0 comments on commit a0bc7c3

Please sign in to comment.