Add comment why protocol list uses WeakReference

Change-Id: I997933cbf1bcae94a6edd9db58c25ec1bb96445f
This commit is contained in:
Matthias Sohn 2023-09-23 17:54:39 +02:00
parent d5bcf199c7
commit 7092803ad2
1 changed files with 1 additions and 0 deletions

View File

@ -76,6 +76,7 @@ public enum Operation {
PUSH;
}
// Use weak references to enable unloading dynamically loaded protocols
private static final List<WeakReference<TransportProtocol>> protocols =
new CopyOnWriteArrayList<>();