Skip to content

Commit

Permalink
Restore notify to make sure we do not break anything.
Browse files Browse the repository at this point in the history
  • Loading branch information
bnouwt committed Mar 1, 2024
1 parent 5a89320 commit 99333d7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ public void smartConnectorAdded(RuntimeSmartConnector smartConnector) {
LocalSmartConnectorConnection connection = new LocalSmartConnectorConnection(messageDispatcher, endpoint);
this.localSmartConnectorConnections.put(endpoint.getKnowledgeBaseId(), connection);
connection.start();

if (messageDispatcher.runsInDistributedMode()) {
this.messageDispatcher.getRemoteSmartConnectorConnectionsManager().notifyChangedLocalSmartConnectors();
this.messageDispatcher.notifySmartConnectorsChanged();
}
}

Expand All @@ -68,6 +68,7 @@ public void smartConnectorRemoved(RuntimeSmartConnector smartConnector) {

if (messageDispatcher.runsInDistributedMode()) {
this.messageDispatcher.getRemoteSmartConnectorConnectionsManager().notifyChangedLocalSmartConnectors();
this.messageDispatcher.notifySmartConnectorsChanged();
}
}

Expand Down

0 comments on commit 99333d7

Please sign in to comment.