]> git.bitcoin.ninja Git - ldk-sample/commit
Explicitly stop BackgroundProcessor
authorJeffrey Czyz <jkczyz@gmail.com>
Sun, 18 Jul 2021 17:33:15 +0000 (12:33 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Sun, 18 Jul 2021 17:33:15 +0000 (12:33 -0500)
commit664bc4ac7fb9c5fa1fca0bcaaeb5c0faee318d19
tree69f3b19ddb071e4e7c1f7da2e1c260a300045bc2
parent61d7906349592aa31a670911c77183a018e399d1
Explicitly stop BackgroundProcessor

An upcoming change will stop the BackgroundProcessor's thread upon drop.
Store the processor in a variable and explicitly stop it. Otherwise, the
thread would be stopped immediately after it is started.
src/main.rs