gnodet-bot commented on code in PR #30596:
URL: https://github.com/apache/camel/pull/30596#discussion_r4657731728


##########
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:
   📝 **Nit: truncated comment** — the sentence ends abruptly with `"closed once 
the connection is"`. Suggest completing it:
   
   ```suggestion
           // the SMB client handed to this thread when the disconnect times 
out: closed after the connection is
   ```



-- 
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]

Reply via email to