lightningdevkit / ldk-sample

Sample node implementation using LDK
Apache License 2.0
166 stars 94 forks source link

Explicitly stop BackgroundProcessor #24

Closed jkczyz closed 3 years ago

jkczyz commented 3 years ago

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.