Skip to content

Commit 7a5639b

Browse files
committed
[Java] Stop processing net before we stop the background processor
See https://github.com/lightningdevkit/rust-lightning/issues/1237A Fixes #77.
1 parent 9cdc752 commit 7a5639b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/ldk/batteries/ChannelManagerConstructor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public void chain_sync_completed(EventHandler event_handler, @Nullable MultiThre
207207
* Interrupt the background thread, stopping the background handling of events.
208208
*/
209209
public void interrupt() {
210-
this.background_processor.stop();
211210
this.nio_peer_handler.interrupt();
211+
this.background_processor.stop();
212212
}
213213
}

0 commit comments

Comments
 (0)