From: Matt Corallo Date: Thu, 26 May 2022 21:42:56 +0000 (+0000) Subject: Add note about garbage collection of the chan man constructor X-Git-Tag: v0.0.108.0~1^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=01bfdc1c138f3a65d45411d6ea9a5826c7d0c6e0;p=ldk-java Add note about garbage collection of the chan man constructor --- 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 { /**