From 7a5639be20902abaa73d5dab53664f89bec70357 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 18 Jan 2022 21:46:31 +0000 Subject: [PATCH] [Java] Stop processing net before we stop the background processor See https://github.com/lightningdevkit/rust-lightning/issues/1237A Fixes #77. --- src/main/java/org/ldk/batteries/ChannelManagerConstructor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } } -- 2.39.5