|
|
|
@ -79,10 +79,10 @@ public class TCPClient { |
|
|
|
log.error("连接设备失败,IP:{},Port:{}",config.getIp(),config.getPort(),e); |
|
|
|
}finally { |
|
|
|
try { |
|
|
|
if (in!= null){ |
|
|
|
if (in != null){ |
|
|
|
in.close(); |
|
|
|
} |
|
|
|
if (socket!= null && !socket.isClosed()){ |
|
|
|
if (socket != null && !socket.isClosed()){ |
|
|
|
socket.close(); |
|
|
|
} |
|
|
|
} catch (IOException e) { |
|
|
|
|