Skip to content

Commit

Permalink
Merge pull request #486 from TNO/restore-notify
Browse files Browse the repository at this point in the history
Restore notify to make sure we do not break anything.
  • Loading branch information
bnouwt authored Mar 1, 2024
2 parents 5a89320 + 99333d7 commit ab37adb
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 ab37adb

Please sign in to comment.