fix: pool throw exceptipn

This commit is contained in:
tanyawen
2019-12-29 09:18:23 +08:00
parent 32167310dd
commit 31ad07bae8
2 changed files with 5 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ public class ConnectionPool {
*/
private final static ConcurrentHashMap<String, ConnectionManager> CP = new ConcurrentHashMap<String, ConnectionManager>();
public static Connection getConnection(InetSocketAddress socketAddress) throws MyException {
public static Connection getConnection(InetSocketAddress socketAddress) throws MyException, IOException {
if (socketAddress == null) {
return null;
}