]> git.bitcoin.ninja Git - ldk-sample/commit
Cleanly shut down PeerManager by disconnecting before we quit
authorMatt Corallo <git@bluematt.me>
Thu, 24 Mar 2022 00:05:31 +0000 (00:05 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 25 Mar 2022 23:21:49 +0000 (23:21 +0000)
commit8e113ff7a8e31cbc63310222ed038cd7ab92520d
tree0757f03a6c82bcfce9cec658bda653f88c3307e5
parenta390ef2a3844f5b8ce03c35169b5c15ee2a1aaa6
Cleanly shut down PeerManager by disconnecting before we quit

This ensures we don't keep processing peer messages long after we
stopped the backgroundprocessor (which results in our
`ChannelManager` on disk being stale compared to monitors).
src/main.rs