From: Matt Corallo Date: Tue, 18 Jan 2022 21:46:31 +0000 (+0000) Subject: [Java] Stop processing net before we stop the background processor X-Git-Tag: v0.0.105.0~2^2~3 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=7a5639be20902abaa73d5dab53664f89bec70357;p=ldk-java [Java] Stop processing net before we stop the background processor See https://github.com/lightningdevkit/rust-lightning/issues/1237A Fixes #77. --- diff --git a/src/main/java/org/ldk/batteries/ChannelManagerConstructor.java b/src/main/java/org/ldk/batteries/ChannelManagerConstructor.java index 7399ccb3..d64c0d6e 100644 --- a/src/main/java/org/ldk/batteries/ChannelManagerConstructor.java +++ b/src/main/java/org/ldk/batteries/ChannelManagerConstructor.java @@ -207,7 +207,7 @@ assert this.payer != null; * Interrupt the background thread, stopping the background handling of events. */ public void interrupt() { - this.background_processor.stop(); this.nio_peer_handler.interrupt(); + this.background_processor.stop(); } }