]> git.bitcoin.ninja Git - ldk-sample/commit
Stop connecting outbound on shutdown in addition to stopping listen
authorMatt Corallo <git@bluematt.me>
Sun, 3 Apr 2022 02:26:07 +0000 (02:26 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 4 Apr 2022 20:11:32 +0000 (20:11 +0000)
commit85ea82ef35516def812e8440620e2c1198a46cbc
tree9307bb20308d6c08ad1d9239122804cb4685cb83
parent1f5243998796bcbd6a26eb93cef40bfd2e1bdf75
Stop connecting outbound on shutdown in addition to stopping listen

Now that we persist the network graph on shutdown, there is a
nontrivial amount of time spent between when we start shutdown and
when we complete. Thus, and to be somewhat more pedantic as a
sample implementation, we should really stop making new outbound
connections once shutdown starts, and not only focus on new inbound
connections.
src/main.rs