diff --git a/src/main/java/org/csource/fastdfs/pool/ConnectionPool.java b/src/main/java/org/csource/fastdfs/pool/ConnectionPool.java index 2748623..300e64d 100644 --- a/src/main/java/org/csource/fastdfs/pool/ConnectionPool.java +++ b/src/main/java/org/csource/fastdfs/pool/ConnectionPool.java @@ -38,12 +38,7 @@ public class ConnectionPool { if (connectionManager != null) { connectionManager.releaseConnection(connection); } else { - try { - connection.closeDirectly(); - } catch (IOException e) { - System.err.println("close socket error, msg:" + e.getMessage()); - e.printStackTrace(); - } + connection.closeDirectly(); } }