/** * Shutdown the global {@link TcpResources} without resetting them, * effectively cleaning up associated resources without creating new ones. */ public static void disposeLoopsAndConnections() { TcpResources resources = tcpResources.getAndSet(null); if (resources != null) { resources._dispose(); } }
/** * Shutdown the global {@link TcpResources} without resetting them, * effectively cleaning up associated resources without creating new ones. */ public static void disposeLoopsAndConnections() { TcpResources resources = tcpResources.getAndSet(null); if (resources != null) { resources._dispose(); } }
update._dispose();