Skip to content

Commit 81073b5

Browse files
Refactor: Update TelnetCommand.java
1 parent b3d751d commit 81073b5

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/main/java/com/mycmd/commands/TelnetCommand.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,6 @@ public void execute(String[] args, ShellContext context) throws IOException {
7373
} catch (IOException ignored) {
7474
// stdin/socket error, will disconnect
7575
}
76-
77-
// ensure socket closes to stop reader
78-
try {
79-
socket.close();
80-
} catch (IOException ignored) {
81-
}
82-
System.out.println("\nDisconnected.");
8376
} catch (IOException e) {
8477
System.out.println("Connection failed: " + e.getMessage());
8578
}

0 commit comments

Comments
 (0)