Commit ecf1f4cc authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Interdomain component:

- Added filter to skip undesired device events
- Corrected close of DLT connector client
parent 7137a540
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -69,6 +69,7 @@ class RemoteDomainClients(threading.Thread):
            if not isinstance(event, DeviceEvent): continue
            LOGGER.info('Processing Event({:s})...'.format(grpc_message_to_json_string(event)))
            domain_data = get_domain_data(self.context_client, event)
            if domain_data is None: continue
            domain_name, domain_address, domain_port = domain_data
            try:
                self.add_peer(domain_name, domain_address, domain_port)
+1 −1
Original line number Diff line number Diff line
@@ -295,4 +295,4 @@ class TopologyAbstractor(threading.Thread):
            LOGGER.warning('Unsupported Event({:s})'.format(grpc_message_to_json_string(event)))

        dlt_record_sender.commit()
        dlt_connector_client.close()
        if dlt_connector_client is not None: dlt_connector_client.close()