Skip to content

Commit

Permalink
fixing Connector is not properly removed
Browse files Browse the repository at this point in the history
  • Loading branch information
switschel committed Oct 22, 2024
1 parent 474f021 commit c243f75
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ public ResponseEntity<String> deleteConnectionConfiguration(@PathVariable String
return ResponseEntity.status(HttpStatus.BAD_REQUEST)
.body("Can't delete an enabled connector! Disable connector first.");
// make sure the connector is disconnected before it is deleted.
if (connectorRegistry.getClientForTenant(tenant, ident).isConnected())
bootstrapService.disableConnector(tenant, ident);
//if (connectorRegistry.getClientForTenant(tenant, ident) != null && connectorRegistry.getClientForTenant(tenant, ident).isConnected())
bootstrapService.disableConnector(tenant, ident);
connectorConfigurationComponent.deleteConnectorConfiguration(ident);
mappingComponent.removeConnectorFromDeploymentMap(tenant, ident);
bootstrapService.shutdownAndRemoveConnector(tenant, ident);
Expand Down

0 comments on commit c243f75

Please sign in to comment.