fix:connection pool

This commit is contained in:
tanyawen
2019-12-28 05:18:42 +08:00
parent 6aa61096b2
commit 006af0379f
2 changed files with 9 additions and 12 deletions

View File

@@ -54,8 +54,7 @@ public class ConnectionPool {
if (key != null) {
ConnectionManager connectionManager = CP.get(key);
if (connectionManager != null) {
ConnectionInfo connectionInfo = new ConnectionInfo(trackerServer.getSocket(),trackerServer.getInetSocketAddress(),System.currentTimeMillis(),true);
connectionManager.freeConnection(connectionInfo);
connectionManager.freeConnection(trackerServer);
} else {
trackerServer.closeDirect();
}