]> git.bitcoin.ninja Git - rust-lightning/commit
Don't immediately exit BP if `ChannelManager` is persistable
authorMatt Corallo <git@bluematt.me>
Mon, 3 Apr 2023 20:11:30 +0000 (20:11 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 4 Apr 2023 20:59:56 +0000 (20:59 +0000)
commit8676c5aa4e18086bf56a21966de01f173b6b6983
tree3b120080f9a32a1ba738450d7d4f626a150c5ab1
parentfcf1282975fe8627efdd7657ba3007640daedce8
Don't immediately exit BP if `ChannelManager` is persistable

If `ChannelManager` is persistable before the async background
processor even starts, it may not even get around to overwriting
the `should_exit` flag before testing it, and the default value is
(incorrectly) true, causing an immediate unconditional exit.

The default value should simply be false.

Fixes #2140
lightning-background-processor/src/lib.rs