davsclaus commented on code in PR #30596:
URL: https://github.com/apache/camel/pull/30596#discussion_r4657742858
##########
components/camel-smb/src/main/java/org/apache/camel/component/smb/SmbOperations.java:
##########
@@ -128,21 +146,80 @@ public boolean isConnected() throws
GenericFileOperationFailedException {
@Override
public void disconnect() throws GenericFileOperationFailedException {
loggedIn = false;
+ DiskShare currentShare = share;
+ Session currentSession = session;
+ Connection currentConnection = connection;
+ share = null;
+ session = null;
+ connection = null;
+ if (currentShare == null && currentSession == null &&
currentConnection == null) {
+ return;
+ }
+ if (endpoint == null) {
+ close(currentConnection, currentSession, currentShare);
+ return;
+ }
+ // the SMB client of the connection, when the disconnect does not wait
for it: closed once the connection is
Review Comment:
Fixed in 5f15d22f2f2f: the sentence now ends with "closed".
_Claude Code on behalf of davsclaus_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]