Skip to content

Commit 9c7e1cc

Browse files
committed
Handle error when transport is not connected.
1 parent b6afa2a commit 9c7e1cc

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

smb/src/main/java/ch/cyberduck/core/smb/SMBSession.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ public void logout() throws BackgroundException {
350350
catch(SMBRuntimeException e) {
351351
throw new SMBExceptionMappingService().map(e);
352352
}
353-
catch(TransportException e) {
353+
catch(TransportException | IllegalStateException e) {
354354
throw new BackgroundException(e);
355355
}
356356
finally {

smb/src/test/java/ch/cyberduck/core/smb/SMBRootListServiceTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,5 @@ public void testListAllShares() throws Exception {
3939
assertNotEquals(TransferStatus.UNKNOWN_LENGTH, f.attributes().getSize());
4040
assertNotEquals(Quota.unknown, f.attributes().getQuota());
4141
}
42-
session.close();
4342
}
4443
}

0 commit comments

Comments
 (0)