From 01bfdc1c138f3a65d45411d6ea9a5826c7d0c6e0 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Thu, 26 May 2022 21:42:56 +0000 Subject: [PATCH] Add note about garbage collection of the chan man constructor --- .../java/org/ldk/batteries/ChannelManagerConstructor.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/ldk/batteries/ChannelManagerConstructor.java b/src/main/java/org/ldk/batteries/ChannelManagerConstructor.java index 122fcff8..6a9b9be6 100644 --- a/src/main/java/org/ldk/batteries/ChannelManagerConstructor.java +++ b/src/main/java/org/ldk/batteries/ChannelManagerConstructor.java @@ -14,6 +14,10 @@ import java.util.HashSet; * more ChannelMonitors. * * Also constructs a PeerManager and spawns a background thread to monitor for and notify you of relevant Events. + * + * Note that you must ensure you hold a reference to any constructed ChannelManagerConstructor objects to ensure you + * continue to receive events generated by the background thread which will be stopped if this object is garbage + * collected. */ public class ChannelManagerConstructor { /** -- 2.39.5