Skip to content

Commit 60606dd

Browse files
garyrussellartembilan
authored andcommitted
Polishing
1 parent 0e30349 commit 60606dd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

spring-integration-ip/src/main/java/org/springframework/integration/ip/tcp/connection/TcpNetServerConnectionFactory.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,12 @@ public void run() {
163163
catch (Exception e) {
164164
this.logger.error("Failed to create and configure a TcpConnection for the new socket: "
165165
+ socket.getInetAddress().getHostAddress() + ":" + socket.getPort(), e);
166-
socket.close();
166+
try {
167+
socket.close();
168+
}
169+
catch (IOException e1) {
170+
// empty
171+
}
167172
}
168173
}
169174
}

0 commit comments

Comments
 (0)