562935844@qq.com
2022-12-28 30e96788f05f5ce28b58d991051c79e9c952c824
HDLSDK/hdl-socket/src/main/java/com/hdl/sdk/socket/SocketPool.java
@@ -21,13 +21,10 @@
        mUdpClientPool = new ConcurrentHashMap<>();
    }
    private static class SingletonInstance {
        private static final SocketPool INSTANCE = new SocketPool();
    }
    private static final SocketPool instance = new SocketPool();
    public static SocketPool getInstance() {
        return SingletonInstance.INSTANCE;
        return instance;
    }
    public void clear() {
@@ -35,7 +32,7 @@
        mUdpClientPool.clear();
    }
    public synchronized DatagramSocket getUdpSocket1(InetSocketAddress address) throws SocketException {
    public synchronized DatagramSocket getUdpSocket(InetSocketAddress address) throws SocketException {
        DatagramSocket socket;
        final String key = address.toString();
        if (mUdpClientPool.containsKey(key)) {